Skip to content

Commit

Permalink
unity-uwp-builder@v1.0.2 (#4)
Browse files Browse the repository at this point in the history
- fix build path with white space
  • Loading branch information
StephenHodgson authored Oct 30, 2024
1 parent 3269bdf commit 75589f8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
$templatePath = Get-ChildItem -Recurse -Filter "com.unity.template.3d*.tgz" -Path $rootPath | Select-Object -First 1 | Select-Object -ExpandProperty FullName
Write-Host "TEMPLATE_PATH=$templatePath"
echo "TEMPLATE_PATH=$templatePath" >> $env:GITHUB_ENV
$projectPath = "${{ github.workspace }}/TestProject"
$projectPath = "${{ github.workspace }}/Test Project"
echo "UNITY_PROJECT_PATH=$projectPath" >> $env:GITHUB_ENV
shell: pwsh
# Activates the installation with the provided credentials
Expand All @@ -56,10 +56,10 @@ jobs:
name: Create Test Project
with:
log-name: 'create-test-project'
args: '-quit -nographics -batchmode -createProject "${{ github.workspace }}/TestProject" -cloneFromTemplate "${{ env.TEMPLATE_PATH }}"'
args: '-quit -nographics -batchmode -createProject "${{ env.UNITY_PROJECT_PATH }}" -cloneFromTemplate "${{ env.TEMPLATE_PATH }}"'
- run: 'openupm add com.virtualmaker.buildalon'
name: Add Build Pipeline Package
working-directory: ${{ github.workspace }}/TestProject
working-directory: ${{ env.UNITY_PROJECT_PATH }}
- uses: buildalon/unity-action@v1
name: '${{ matrix.build-target }}-Validate'
with:
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30599,7 +30599,7 @@ const main = async () => {
if (!core.isDebug()) {
buildArgs.push(`/verbosity:minimal`);
}
await exec.exec(`msbuild`, [buildPath, ...buildArgs], {
await exec.exec(`msbuild`, [`"${buildPath}"`, ...buildArgs], {
windowsVerbatimArguments: true
});
const outputDirectory = path.join(projectPath, `AppPackages`);
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unity-uwp-builder",
"version": "1.0.1",
"version": "1.0.2",
"description": "A GitHub Action to build Unity exported UWP projects.",
"author": "buildalon",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const main = async () => {
if (!core.isDebug()) {
buildArgs.push(`/verbosity:minimal`);
}
await exec.exec(`msbuild`, [buildPath, ...buildArgs], {
await exec.exec(`msbuild`, [`"${buildPath}"`, ...buildArgs], {
windowsVerbatimArguments: true
});
const outputDirectory = path.join(projectPath, `AppPackages`);
Expand Down

0 comments on commit 75589f8

Please sign in to comment.