@@ -22,11 +22,13 @@ jobs:
22
22
- target : Android
23
23
os : ubuntu-latest
24
24
artifact_name : release-Android
25
- artifact_path : build/app/outputs/apk/release /*.apk
25
+ artifact_path : build/app/outputs/flutter- apk/*.apk
26
26
- target : Windows
27
27
os : windows-latest
28
28
artifact_name : release-Windows
29
- artifact_path : build/windows/*.zip
29
+ artifact_path : |
30
+ build/windows/*.zip
31
+ build/windows/installer/*.exe
30
32
- target : Linux
31
33
os : ubuntu-latest
32
34
artifact_name : release-Linux
@@ -116,7 +118,7 @@ jobs:
116
118
run : |
117
119
flutter build apk --release
118
120
flutter build apk --release --split-per-abi
119
- cd build/app/outputs/apk/release
121
+ cd build/app/outputs/flutter- apk
120
122
mv app-release.apk CloudOTP-${{ steps.get_version.outputs.version }}-android-universal.apk
121
123
mv app-arm64-v8a-release.apk CloudOTP-${{ steps.get_version.outputs.version }}-android-arm64-v8a.apk
122
124
mv app-armeabi-v7a-release.apk CloudOTP-${{ steps.get_version.outputs.version }}-android-armeabi-v7a.apk
@@ -144,8 +146,7 @@ jobs:
144
146
pod update
145
147
cd ..
146
148
flutter build macos --release
147
- brew install create-dmg
148
- create-dmg --volname CloudOTP-${{ steps.get_version.outputs.version }}-macos --window-pos 200 120 --window-size 800 450 --icon-size 100 --app-drop-link 600 185 CloudOTP-${{ steps.get_version.outputs.version }}-macos.dmg build/macos/Build/Products/Release/cloudtop.app
149
+ hdiutil create -format UDZO -srcfolder build/macos/Build/Products/Release/cloudotp.app -volname CloudOTP-${{ steps.get_version.outputs.version }}-macos CloudOTP-${{ steps.get_version.outputs.version }}-macos.dmg
149
150
150
151
# Build Windows .zip
151
152
- name : Build Windows
@@ -159,6 +160,16 @@ jobs:
159
160
Copy-Item -Filter *.dll -Path tools\windows_dll\* -Destination $DestDir -Force
160
161
Copy-Item -Filter *.dll -Path windows\* -Destination $DestDir -Force
161
162
Compress-Archive $DestDir build\windows\CloudOTP-${{ steps.get_version.outputs.version }}-windows-x86_64.zip
163
+
164
+ (Get-Content tools/windows_tools/CloudOTP.iss) -replace '#define MyAppVersion ".*"', '#define MyAppVersion "${{ steps.get_version.outputs.version }}"' | Set-Content tools/windows_tools/CloudOTP.iss
165
+
166
+ # Build Windows .exe
167
+ - name : Build Windows Installer
168
+ if : matrix.target == 'Windows'
169
+ uses : Minionguyjpro/Inno-Setup-Action@v1.2.2
170
+ with :
171
+ path : " tools/windows_tools/CloudOTP.iss"
172
+ options : /F CloudOTP-${{ steps.get_version.outputs.version }}-windows-x86_64.exe
162
173
163
174
# Build Linux .deb
164
175
- name : Build Linux
@@ -245,4 +256,4 @@ jobs:
245
256
/tmp/artifacts/release-Linux/*.deb
246
257
/tmp/artifacts/release-Linux/*.tar.gz
247
258
artifactErrorsFailBuild : true
248
- replacesArtifacts : true
259
+ replacesArtifacts : true
0 commit comments