Skip to content

Commit fe12f01

Browse files
committed
wip
1 parent 3a7239f commit fe12f01

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ jobs:
112112
build-windows-installer:
113113
name: Build Windows Installer
114114
runs-on: windows-latest
115+
needs: [ build ]
115116
env:
116117
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.logging.level=info"
117118
steps:
@@ -137,6 +138,16 @@ jobs:
137138
if (-Not (Test-Path "build\\jpackage\\SkyenetApps")) {
138139
New-Item -ItemType Directory -Force -Path "build\\jpackage\\SkyenetApps"
139140
}
141+
- name: Update SkyenetApps Version
142+
shell: pwsh
143+
run: |
144+
$version = "${{ needs.build.outputs.version }}"
145+
Write-Output "Setting SkyenetApps version to: $version"
146+
$gradlePropertiesPath = "SkyenetApps/gradle.properties"
147+
$content = Get-Content $gradlePropertiesPath -Raw
148+
$updatedContent = $content -replace "libraryVersion\s*=\s*[0-9.]+", "libraryVersion = $version"
149+
Set-Content -Path $gradlePropertiesPath -Value $updatedContent
150+
Write-Output "Updated gradle.properties with new version"
140151
- name: Make Gradle wrapper executable
141152
working-directory: SkyenetApps
142153
run: |
@@ -385,5 +396,12 @@ jobs:
385396
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
386397
run: |
387398
echo "Uploading Windows installer asset..."
399+
MSI_FILE=$(find ./windows-installer -name "*.msi" -type f)
400+
if [ -z "$MSI_FILE" ]; then
401+
echo "Error: No MSI file found in windows-installer directory"
402+
ls -la ./windows-installer
403+
exit 1
404+
fi
405+
echo "Found MSI file: $MSI_FILE"
388406
gh release upload "v${{ needs.build.outputs.version }}" \
389-
"./windows-installer/SkyenetApps-${{ needs.build.outputs.version }}.msi#SkyenetApps-${{ needs.build.outputs.version }}.msi"
407+
"$MSI_FILE"

SkyenetApps

0 commit comments

Comments
 (0)