-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathbuild_all.cmd
More file actions
24 lines (18 loc) · 748 Bytes
/
Copy pathbuild_all.cmd
File metadata and controls
24 lines (18 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@echo off
REM builds and renames all apks and the appbudle
echo Cleaning...
call flutter clean
echo Building split per abi...
call flutter build apk --split-per-abi
echo Building combined apk...
call flutter build apk
echo Building bundle...
call flutter build appbundle
echo Renaming files...
for /F "tokens=* USEBACKQ" %%F in (`git rev-parse HEAD`) do (set sha=%%F)
set "sha=%sha:~0,7%"
ren .\build\app\outputs\flutter-apk\app-arm64-v8a-release.apk stickers-%sha%-arm64-v8a.apk
ren .\build\app\outputs\flutter-apk\app-armeabi-v7a-release.apk stickers-%sha%-armeabi-v7a.apk
ren .\build\app\outputs\flutter-apk\app-x86_64-release.apk stickers-%sha%-x86_64.apk
ren .\build\app\outputs\flutter-apk\app-release.apk stickers-%sha%.apk
echo Done !