Skip to content

Commit 3583fe9

Browse files
Merge remote-tracking branch 'origin/main'
2 parents 2ed916b + 3d76fa6 commit 3583fe9

File tree

5 files changed

+671
-265
lines changed

5 files changed

+671
-265
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ jobs:
2222
- target: Android
2323
os: ubuntu-latest
2424
artifact_name: release-Android
25-
artifact_path: build/app/outputs/apk/release/*.apk
25+
artifact_path: build/app/outputs/flutter-apk/*.apk
2626
- target: Windows
2727
os: windows-latest
2828
artifact_name: release-Windows
29-
artifact_path: build/windows/*.zip
29+
artifact_path: |
30+
build/windows/*.zip
31+
build/windows/installer/*.exe
3032
- target: Linux
3133
os: ubuntu-latest
3234
artifact_name: release-Linux
@@ -116,7 +118,7 @@ jobs:
116118
run: |
117119
flutter build apk --release
118120
flutter build apk --release --split-per-abi
119-
cd build/app/outputs/apk/release
121+
cd build/app/outputs/flutter-apk
120122
mv app-release.apk CloudOTP-${{ steps.get_version.outputs.version }}-android-universal.apk
121123
mv app-arm64-v8a-release.apk CloudOTP-${{ steps.get_version.outputs.version }}-android-arm64-v8a.apk
122124
mv app-armeabi-v7a-release.apk CloudOTP-${{ steps.get_version.outputs.version }}-android-armeabi-v7a.apk
@@ -144,8 +146,7 @@ jobs:
144146
pod update
145147
cd ..
146148
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
149150
150151
# Build Windows .zip
151152
- name: Build Windows
@@ -159,6 +160,16 @@ jobs:
159160
Copy-Item -Filter *.dll -Path tools\windows_dll\* -Destination $DestDir -Force
160161
Copy-Item -Filter *.dll -Path windows\* -Destination $DestDir -Force
161162
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
162173

163174
# Build Linux .deb
164175
- name: Build Linux
@@ -245,4 +256,4 @@ jobs:
245256
/tmp/artifacts/release-Linux/*.deb
246257
/tmp/artifacts/release-Linux/*.tar.gz
247258
artifactErrorsFailBuild: true
248-
replacesArtifacts: true
259+
replacesArtifacts: true

lib/Screens/main_screen.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,6 @@ class MainScreenState extends State<MainScreen>
927927
@override
928928
void onTrayIconMouseDown() {
929929
Utils.displayApp();
930-
trayManager.popUpContextMenu();
931930
}
932931

933932
@override

0 commit comments

Comments
 (0)