Skip to content

Commit 75589f8

Browse files
- fix build path with white space
1 parent 3269bdf commit 75589f8

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

.github/workflows/validate.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
$templatePath = Get-ChildItem -Recurse -Filter "com.unity.template.3d*.tgz" -Path $rootPath | Select-Object -First 1 | Select-Object -ExpandProperty FullName
4444
Write-Host "TEMPLATE_PATH=$templatePath"
4545
echo "TEMPLATE_PATH=$templatePath" >> $env:GITHUB_ENV
46-
$projectPath = "${{ github.workspace }}/TestProject"
46+
$projectPath = "${{ github.workspace }}/Test Project"
4747
echo "UNITY_PROJECT_PATH=$projectPath" >> $env:GITHUB_ENV
4848
shell: pwsh
4949
# Activates the installation with the provided credentials
@@ -56,10 +56,10 @@ jobs:
5656
name: Create Test Project
5757
with:
5858
log-name: 'create-test-project'
59-
args: '-quit -nographics -batchmode -createProject "${{ github.workspace }}/TestProject" -cloneFromTemplate "${{ env.TEMPLATE_PATH }}"'
59+
args: '-quit -nographics -batchmode -createProject "${{ env.UNITY_PROJECT_PATH }}" -cloneFromTemplate "${{ env.TEMPLATE_PATH }}"'
6060
- run: 'openupm add com.virtualmaker.buildalon'
6161
name: Add Build Pipeline Package
62-
working-directory: ${{ github.workspace }}/TestProject
62+
working-directory: ${{ env.UNITY_PROJECT_PATH }}
6363
- uses: buildalon/unity-action@v1
6464
name: '${{ matrix.build-target }}-Validate'
6565
with:

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30599,7 +30599,7 @@ const main = async () => {
3059930599
if (!core.isDebug()) {
3060030600
buildArgs.push(`/verbosity:minimal`);
3060130601
}
30602-
await exec.exec(`msbuild`, [buildPath, ...buildArgs], {
30602+
await exec.exec(`msbuild`, [`"${buildPath}"`, ...buildArgs], {
3060330603
windowsVerbatimArguments: true
3060430604
});
3060530605
const outputDirectory = path.join(projectPath, `AppPackages`);

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "unity-uwp-builder",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "A GitHub Action to build Unity exported UWP projects.",
55
"author": "buildalon",
66
"license": "MIT",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const main = async () => {
6262
if (!core.isDebug()) {
6363
buildArgs.push(`/verbosity:minimal`);
6464
}
65-
await exec.exec(`msbuild`, [buildPath, ...buildArgs], {
65+
await exec.exec(`msbuild`, [`"${buildPath}"`, ...buildArgs], {
6666
windowsVerbatimArguments: true
6767
});
6868
const outputDirectory = path.join(projectPath, `AppPackages`);

0 commit comments

Comments
 (0)