2424 artifact_name : macos-amd64
2525 build_flags : " "
2626 - os : macos-latest
27- platform : darwin/arm64 # Apple Silicon (M1...M5)
27+ platform : darwin/arm64 # Apple Silicon
2828 artifact_name : macos-arm64
2929 build_flags : " "
3030 - os : ubuntu-latest
@@ -62,13 +62,21 @@ jobs:
6262 - name : Package Mac App (Preserve Permissions)
6363 if : runner.os == 'macOS'
6464 working-directory : ./desktop/build/bin
65- run : zip -qr LanSync-${{ matrix.artifact_name }}.zip LanSync.app
65+ # Changed to lowercase
66+ run : zip -qr lansync-${{ matrix.artifact_name }}.zip LanSync.app
67+
68+ - name : Package Windows Installer
69+ if : runner.os == 'Windows'
70+ working-directory : ./desktop/build/bin
71+ # Deletes the raw executable and renames the actual NSIS installer
72+ run : |
73+ Remove-Item -Path "LanSync.exe" -ErrorAction SilentlyContinue
74+ Rename-Item -Path "*-installer.exe" -NewName "lansync-setup.exe"
6675
6776 - name : Upload Desktop Artifacts
6877 uses : actions/upload-artifact@v4
6978 with :
7079 name : ${{ matrix.artifact_name }}
71- # Upload the zip for Mac, and the raw binaries for Windows/Linux
7280 path : |
7381 desktop/build/bin/*.exe
7482 desktop/build/bin/*.zip
@@ -91,15 +99,19 @@ jobs:
9199 working-directory : ./mobile
92100 run : chmod +x ./gradlew
93101
94- - name : Build Release APK
102+ - name : Build Debug APK
95103 working-directory : ./mobile
96- run : ./gradlew assembleRelease
104+ run : ./gradlew assembleDebug
105+
106+ - name : Rename APK
107+ working-directory : ./mobile/app/build/outputs/apk/debug
108+ run : mv app-debug.apk lansync_debug.apk
97109
98110 - name : Upload Android Artifact
99111 uses : actions/upload-artifact@v4
100112 with :
101113 name : android-apk
102- path : mobile/app/build/outputs/apk/release/* .apk
114+ path : mobile/app/build/outputs/apk/debug/lansync_debug .apk
103115
104116 publish :
105117 name : Publish Release
@@ -115,8 +127,8 @@ jobs:
115127
116128 - name : Prepare Assets for Release
117129 run : |
118- # Linux binaries still need to be tarballed to preserve permissions
119- cd artifacts/linux-amd64 && tar -czvf ../../LanSync-Linux -amd64.tar.gz . && cd ../../
130+ # Linux binaries still need to be tarballed to preserve permissions. Changed to lowercase.
131+ cd artifacts/linux-amd64 && tar -czvf ../../lansync-linux -amd64.tar.gz . && cd ../../
120132
121133 - name : Create GitHub Release
122134 uses : softprops/action-gh-release@v1
@@ -126,8 +138,8 @@ jobs:
126138 draft : false
127139 prerelease : false
128140 files : |
129- artifacts/macos-amd64/* .zip
130- artifacts/macos-arm64/* .zip
131- LanSync-Linux -amd64.tar.gz
132- artifacts/windows-amd64/* .exe
133- artifacts/android-apk/* .apk
141+ artifacts/macos-amd64/lansync-macos-amd64 .zip
142+ artifacts/macos-arm64/lansync-macos-arm64 .zip
143+ lansync-linux -amd64.tar.gz
144+ artifacts/windows-amd64/lansync-setup .exe
145+ artifacts/android-apk/lansync_debug .apk
0 commit comments