Skip to content

Commit 4e96e66

Browse files
author
Abdullah As-Sadeed
committed
Enabled Patching JNI CMakeLists to Remove build-id for Android, Disabled Obfuscating Builds & Splitting Debug Symbols, Disabled Analytics of Dart & Flutter, & Disabled Python Installation for Disabled AWS CLI in GitHub Actions Workflow; flutter pub upgrade; Bumped Version & Build Number; and Formatted Files.
1 parent 2021055 commit 4e96e66

6 files changed

Lines changed: 126 additions & 103 deletions

File tree

.github/workflows/Build, Release, and Deploy.yaml

Lines changed: 89 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches:
77
- main
88
jobs:
9-
validate-fastlane-metadata:
9+
validate_fastlane_metadata:
1010
name: Validate Fastlane Metadata
1111
runs-on: ubuntu-latest
1212
permissions:
@@ -21,7 +21,7 @@ jobs:
2121
fastlaneDir: ./fastlane/metadata/android
2222
usePlayStoreLocales: true
2323

24-
build-for-linux:
24+
build_for_linux:
2525
name: Build for Linux
2626
runs-on: ubuntu-latest
2727
permissions:
@@ -33,6 +33,12 @@ jobs:
3333
channel: stable
3434
flutter-version: 3.41.6
3535

36+
- name: Disable Analytics of Dart and Flutter
37+
run: |
38+
dart --disable-analytics
39+
flutter --disable-analytics
40+
shell: bash
41+
3642
- name: Install Dependencies
3743
run: |
3844
sudo apt update -y
@@ -51,7 +57,7 @@ jobs:
5157
shell: bash
5258

5359
- name: Build for Linux
54-
run: flutter build linux --release --obfuscate --split-debug-info=./build/Debug_Symbols/ -v
60+
run: flutter build linux --release
5561
shell: bash
5662

5763
- name: Download appimagetool (x86_64) and Permit Execution
@@ -85,7 +91,6 @@ jobs:
8591

8692
- name: Rename, Move, and Archive Build Artifacts
8793
run: |
88-
mv ./build/Debug_Symbols/app.linux-x64.symbols ./build/Release/Bitscoper_CyberKit-Linux_x64.symbols
8994
cd ./build/linux/x64/release/bundle/
9095
zip -r ../../../../Release/Linux_x64_Executable.zip ./*
9196
shell: bash
@@ -97,9 +102,8 @@ jobs:
97102
path: |
98103
build/Release/Linux_x64_Executable.zip
99104
build/Release/*.AppImage
100-
build/Release/Bitscoper_CyberKit-Linux_x64.symbols
101105
102-
build-for-android:
106+
build_for_android:
103107
name: Build for Android
104108
runs-on: ubuntu-latest
105109
permissions:
@@ -111,6 +115,12 @@ jobs:
111115
channel: stable
112116
flutter-version: 3.41.6
113117

118+
- name: Disable Analytics of Dart and Flutter
119+
run: |
120+
dart --disable-analytics
121+
flutter --disable-analytics
122+
shell: bash
123+
114124
- name: Run flutter doctor
115125
run: flutter doctor -v
116126
shell: bash
@@ -122,6 +132,10 @@ jobs:
122132
run: flutter pub get -v
123133
shell: bash
124134

135+
- name: Patch JNI CMakeLists to Remove build-id
136+
run: sed -i -e 's/-Wl,/-Wl,--build-id=none,/' "${HOME}/.pub-cache/hosted"/*/jni-*/src/CMakeLists.txt
137+
shell: bash
138+
125139
- name: Create key.properties
126140
run: |
127141
echo "storePassword=${{ secrets.ANDROID_KEYSTORE_PASSWORD }}" >> ./android/key.properties
@@ -136,28 +150,24 @@ jobs:
136150
shell: bash
137151

138152
- name: Build appbundle
139-
run: flutter build appbundle --release --obfuscate --split-debug-info=./build/Debug_Symbols/ -v
153+
run: flutter build appbundle --release
140154
shell: bash
141155

142156
- name: Build APKs
143-
run: flutter build apk --split-per-abi --release --obfuscate --split-debug-info=./build/Debug_Symbols/ -v
157+
run: flutter build apk --split-per-abi --release
144158
shell: bash
145159

146160
- name: Rename, Move, and Archive Build Artifacts
147161
run: |
148162
mkdir -p ./build/Release/
149163
mv ./build/app/outputs/bundle/release/app-release.aab ./build/Release/Bitscoper_CyberKit.aab
150-
mv ./build/Debug_Symbols/app.android-x64.symbols ./build/Release/Bitscoper_CyberKit-Android_x64.symbols
151-
mv ./build/Debug_Symbols/app.android-arm64.symbols ./build/Release/Bitscoper_CyberKit-Android_ARM64.symbols
152-
mv ./build/Debug_Symbols/app.android-arm.symbols ./build/Release/Bitscoper_CyberKit-Android_ARM.symbols
153164
mv ./build/app/outputs/flutter-apk/app-x86_64-release.apk ./build/Release/Bitscoper_CyberKit-x86_64.apk
154165
mv ./build/app/outputs/flutter-apk/app-x86_64-release.apk.sha1 ./build/Release/Bitscoper_CyberKit-x86_64.apk.sha1
155166
mv ./build/app/outputs/flutter-apk/app-arm64-v8a-release.apk ./build/Release/Bitscoper_CyberKit-ARM64_V8A.apk
156167
mv ./build/app/outputs/flutter-apk/app-arm64-v8a-release.apk.sha1 ./build/Release/Bitscoper_CyberKit-ARM64_V8A.apk.sha1
157168
mv ./build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk ./build/Release/Bitscoper_CyberKit-ARMEABI_V7A.apk
158169
mv ./build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk.sha1 ./build/Release/Bitscoper_CyberKit-ARMEABI_V7A.apk.sha1
159170
cd ./build/Release/
160-
zip -r ./Android_Debug_Symbols.zip ./Bitscoper_CyberKit-Android_x64.symbols ./Bitscoper_CyberKit-Android_ARM64.symbols ./Bitscoper_CyberKit-Android_ARM.symbols
161171
zip -r ./APK_Checksums.zip ./Bitscoper_CyberKit-x86_64.apk.sha1 ./Bitscoper_CyberKit-ARM64_V8A.apk.sha1 ./Bitscoper_CyberKit-ARMEABI_V7A.apk.sha1
162172
shell: bash
163173

@@ -167,13 +177,12 @@ jobs:
167177
name: Android
168178
path: |
169179
build/Release/Bitscoper_CyberKit.aab
170-
build/Release/Android_Debug_Symbols.zip
171180
build/Release/Bitscoper_CyberKit-x86_64.apk
172181
build/Release/Bitscoper_CyberKit-ARM64_V8A.apk
173182
build/Release/Bitscoper_CyberKit-ARMEABI_V7A.apk
174183
build/Release/APK_Checksums.zip
175184
176-
build-for-macos:
185+
build_for_macos:
177186
name: Build for macOS
178187
runs-on: macos-26
179188
permissions:
@@ -190,38 +199,42 @@ jobs:
190199
channel: stable
191200
flutter-version: 3.41.6
192201

202+
- name: Disable Analytics of Dart and Flutter
203+
run: |
204+
dart --disable-analytics
205+
flutter --disable-analytics
206+
shell: bash
207+
193208
- name: Run flutter doctor
194209
run: flutter doctor -v
210+
shell: bash
195211

196212
- name: Checkout Repository
197213
uses: actions/checkout@v6.0.2
198214

199215
- name: Get Dependencies
200216
run: flutter pub get -v
217+
shell: bash
201218

202219
- name: Build for macOS
203-
run: flutter build macos --release --obfuscate --split-debug-info=./build/Debug_Symbols/ -v
220+
run: flutter build macos --release
221+
shell: bash
204222

205223
- name: Rename, Move, and Archive Build Artifacts
206224
run: |
207225
mkdir -p ./build/Release/
208226
mv ./build/macos/Build/Products/Release/Bitscoper\ CyberKit.app ./build/Release/Bitscoper_CyberKit-macOS.app
209-
mv ./build/Debug_Symbols/app.darwin-x86_64.symbols ./build/Release/Bitscoper_CyberKit-macOS_x86_64.symbols
210-
mv ./build/Debug_Symbols/app.darwin-arm64.symbols ./build/Release/Bitscoper_CyberKit-macOS_ARM64.symbols
211227
cd ./build/Release/
212228
zip -r ./macOS_Executable.zip ./Bitscoper_CyberKit-macOS.app
213-
zip -r ./macOS_Debug_Symbols.zip ./Bitscoper_CyberKit-macOS_x86_64.symbols ./Bitscoper_CyberKit-macOS_ARM64.symbols
214229
shell: bash
215230

216231
- name: Upload Build Artifacts
217232
uses: actions/upload-artifact@v7.0.1
218233
with:
219234
name: macOS
220-
path: |
221-
build/Release/macOS_Executable.zip
222-
build/Release/macOS_Debug_Symbols.zip
235+
path: build/Release/macOS_Executable.zip
223236

224-
build-for-ios:
237+
build_for_ios:
225238
name: Build for iOS
226239
runs-on: macos-26
227240
permissions:
@@ -238,26 +251,35 @@ jobs:
238251
channel: stable
239252
flutter-version: 3.41.6
240253

254+
- name: Disable Analytics of Dart and Flutter
255+
run: |
256+
dart --disable-analytics
257+
flutter --disable-analytics
258+
shell: bash
259+
241260
- name: Run flutter doctor
242261
run: flutter doctor -v
262+
shell: bash
243263

244264
- name: Checkout Repository
245265
uses: actions/checkout@v6.0.2
246266

247267
- name: Get Dependencies
248268
run: flutter pub get -v
269+
shell: bash
249270

250271
- name: Build iOS Executable
251-
run: flutter build ios --no-codesign --release --obfuscate --split-debug-info=./build/Debug_Symbols/ -v
272+
run: flutter build ios --no-codesign --release
273+
shell: bash
252274

253275
# - name: Build IPA
254-
# run: flutter build ipa --no-codesign --release --obfuscate --split-debug-info=./build/Debug_Symbols/ -v
276+
# run: flutter build ipa --no-codesign --release
277+
# shell: bash
255278

256279
- name: Rename Build Artifacts
257280
run: |
258281
mkdir -p ./build/Release/
259282
mv ./build/ios/iphoneos/Runner.app ./build/Release/Bitscoper_CyberKit-iOS.app
260-
mv ./build/Debug_Symbols/app.ios-arm64.symbols ./build/Release/Bitscoper_CyberKit-iOS_ARM64.symbols
261283
cd ./build/Release/
262284
zip -r ./iOS_Executable.zip ./Bitscoper_CyberKit-iOS.app
263285
shell: bash
@@ -266,11 +288,9 @@ jobs:
266288
uses: actions/upload-artifact@v7.0.1
267289
with:
268290
name: iOS
269-
path: |
270-
build/Release/iOS_Executable.zip
271-
build/Release/Bitscoper_CyberKit-iOS_ARM64.symbols
291+
path: build/Release/iOS_Executable.zip
272292

273-
build-for-windows:
293+
build_for_windows:
274294
name: Build for Windows
275295
runs-on: windows-latest
276296
permissions:
@@ -282,6 +302,12 @@ jobs:
282302
channel: stable
283303
flutter-version: 3.41.6
284304

305+
- name: Disable Analytics of Dart and Flutter
306+
run: |
307+
dart --disable-analytics
308+
flutter --disable-analytics
309+
shell: powershell
310+
285311
- name: Run flutter doctor
286312
run: flutter doctor -v
287313
shell: powershell
@@ -301,7 +327,6 @@ jobs:
301327
run: |
302328
New-Item -ItemType Directory -Force -Path .\build\Release\
303329
Move-Item -Path .\build\windows\x64\runner\Release\Bitscoper_CyberKit.msix -Destination .\build\Release\Bitscoper_CyberKit.msix
304-
Move-Item -Path .\build\Debug_Symbols\Windows\app.windows-x64.symbols -Destination .\build\Release\Bitscoper_CyberKit-Windows_x64.symbols
305330
cd .\build\windows\x64\runner\Release\
306331
Compress-Archive -Path .\* -DestinationPath ..\..\..\..\Release\Windows_x64_Executable.zip
307332
shell: powershell
@@ -313,9 +338,8 @@ jobs:
313338
path: |
314339
build\Release\Windows_x64_Executable.zip
315340
build\Release\Bitscoper_CyberKit.msix
316-
build\Release\Bitscoper_CyberKit-Windows_x64.symbols
317341
318-
# build-for-web:
342+
# build_for_web:
319343
# name: Build for Web
320344
# runs-on: ubuntu-latest
321345
# permissions:
@@ -327,6 +351,12 @@ jobs:
327351
# channel: stable
328352
# flutter-version: 3.41.6
329353

354+
# - name: Disable Analytics of Dart and Flutter
355+
# run: |
356+
# dart --disable-analytics
357+
# flutter --disable-analytics
358+
# shell: bash
359+
330360
# - name: Run flutter doctor
331361
# run: flutter doctor -v
332362
# shell: bash
@@ -355,15 +385,15 @@ jobs:
355385
# name: Web
356386
# path: build/Release/Web_Application.zip
357387

358-
upload-release:
388+
upload_release:
359389
name: Upload Release
360390
needs: [
361-
build-for-linux,
362-
build-for-android,
363-
build-for-macos,
364-
build-for-ios,
365-
build-for-windows,
366-
# build-for-web,
391+
build_for_linux,
392+
build_for_android,
393+
build_for_macos,
394+
build_for_ios,
395+
build_for_windows,
396+
# build_for_web,
367397
]
368398
runs-on: ubuntu-latest
369399
permissions:
@@ -394,47 +424,27 @@ jobs:
394424
artifacts: |
395425
./Linux/Linux_x64_Executable.zip
396426
./Linux/*.AppImage
397-
./Linux/Bitscoper_CyberKit-Linux_x64.symbols
398427
./Android/Bitscoper_CyberKit.aab
399-
./Android/Android_Debug_Symbols.zip
400428
./Android/Bitscoper_CyberKit-x86_64.apk
401429
./Android/Bitscoper_CyberKit-ARM64_V8A.apk
402430
./Android/Bitscoper_CyberKit-ARMEABI_V7A.apk
403431
./Android/APK_Checksums.zip
404432
./macOS/macOS_Executable.zip
405-
./macOS/macOS_Debug_Symbols.zip
406433
./iOS/iOS_Executable.zip
407-
./iOS/Bitscoper_CyberKit-iOS_ARM64.symbols
408434
./Windows/Windows_x64_Executable.zip
409435
./Windows/Bitscoper_CyberKit.msix
410-
./Windows/Bitscoper_CyberKit-Windows_x64.symbols
411436
# ./Web/Release/Web_Application.zip
412437
tag: v${{ env.VERSION }}
413438
token: ${{ secrets.GITHUB_TOKEN }}
414439

415-
update-docker-image:
440+
update_docker_image:
416441
name: Update Docker Images
417-
needs: [upload-release]
442+
needs: [upload_release]
418443
runs-on: ubuntu-latest
419444
permissions:
420445
contents: read
421446
packages: write
422447
steps:
423-
- name: Install Python
424-
uses: actions/setup-python@v6.2.0
425-
with:
426-
python-version: "3.13"
427-
428-
- name: Install PIP
429-
run: |
430-
python -m pip install --upgrade pip
431-
shell: bash
432-
433-
# - name: Install AWS CLI
434-
# run: |
435-
# pip install --upgrade awscli
436-
# shell: bash
437-
438448
- name: Checkout Repository
439449
uses: actions/checkout@v6.0.2
440450

@@ -445,7 +455,22 @@ jobs:
445455
docker push ghcr.io/bitscoper/bitscoper_cyberkit:latest
446456
shell: bash
447457

448-
# - name: Build and Push Docker Image to Amazon ECR
458+
# - name: Install Python for AWS CLI
459+
# uses: actions/setup-python@v6.2.0
460+
# with:
461+
# python-version: "3.13"
462+
463+
# - name: Install PIP for AWS CLI
464+
# run: |
465+
# python -m pip install --upgrade pip
466+
# shell: bash
467+
468+
# - name: Install AWS CLI
469+
# run: |
470+
# pip install --upgrade awscli
471+
# shell: bash
472+
473+
# - name: Build and Push Docker Image to Amazon ECR Public Gallery
449474
# run: |
450475
# aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }}
451476
# aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }}
@@ -456,9 +481,9 @@ jobs:
456481
# docker push public.ecr.aws/n7r2f3q1/bitscoper/bitscoper_cyberkit:latest
457482
# shell: bash
458483

459-
# deploy-web-application-to-server:
484+
# deploy_web_application_to_server:
460485
# name: Deploy Web Application to Server
461-
# needs: [upload-release]
486+
# needs: [upload_release]
462487
# runs-on: ubuntu-latest
463488
# permissions:
464489
# contents: read

0 commit comments

Comments
 (0)