Skip to content

Commit 4397add

Browse files
committed
fix: fixed correct versioning and fixed workflow to generate proper build files
1 parent 9421e37 commit 4397add

6 files changed

Lines changed: 33 additions & 21 deletions

File tree

.github/workflows/release.yml

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
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

desktop/frontend/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.

desktop/frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "lansync",
33
"private": true,
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

desktop/frontend/package.json.md5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f7a6bd9d153a88a1672bce1875b4089d
1+
2a2edc7eaf417d227f1143d93e8f407a

desktop/wails.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"frontend:dev:watcher": "npm run dev",
88
"frontend:dev:serverUrl": "auto",
99
"author": {
10-
"name": "Sreejan",
11-
"email": "sreejan.naru@capsitech.com"
10+
"name": "Xron Trix",
11+
"email": "xrontrix@gmail.com"
1212
}
1313
}

mobile/app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ android {
1515
applicationId = "com.xrontrix.lansync"
1616
minSdk = 30
1717
targetSdk = 36
18-
versionCode = 1
19-
versionName = "1.0"
18+
versionCode = 2
19+
versionName = "1.0.1"
2020

2121
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
2222
}

0 commit comments

Comments
 (0)