mirror of
https://github.com/markqvist/Sideband.git
synced 2026-11-25 09:26:22 -05:00
Add Dockerfile and targets for building in Docker
This commit is contained in:
parent
6a187192a5
commit
483dfd8653
4 changed files with 107 additions and 1 deletions
20
Makefile
20
Makefile
|
|
@ -33,8 +33,26 @@ build_wheel:
|
|||
|
||||
release: build_wheel apk fetchapk
|
||||
|
||||
release_docker:
|
||||
-mkdir -p ./dist
|
||||
@echo If you experience errors, please ensure you have docker-buildx installed on your system.
|
||||
sudo docker build --target=artifact --output type=local,dest=./dist/ .
|
||||
@echo Build successful. APK copied to ./dist directory.
|
||||
$(MAKE) sign_release
|
||||
|
||||
sign_release:
|
||||
@echo This stage generates a keystore in the root directory of the repo and signs the APK with it.
|
||||
@echo If a keystore already exists, it is reused.
|
||||
@echo Please make sure you have apksigner and zipalign installed on your system before proceeding.
|
||||
@echo Press enter to continue.
|
||||
@read VOID
|
||||
if [ ! -f "./key.keystore" ]; then keytool -genkey -v -keystore key.keystore -keyalg RSA -keysize 4096 -validity 10000 -alias app; fi
|
||||
VERSION=$(shell ls ./dist/*.apk | cut -d\- -f 2 | head -n 1); \
|
||||
zipalign -p 4 ./dist/sideband-*-release-unsigned.apk ./dist/sideband-$$VERSION-release.apk; \
|
||||
apksigner sign --ks-key-alias app --ks key.keystore ./dist/sideband-$$VERSION-release.apk; \
|
||||
|
||||
upload:
|
||||
@echo Ready to publish release, hit enter to continue
|
||||
@read VOID
|
||||
@echo Uploading to PyPi...
|
||||
twine upload dist/sbapp-*
|
||||
twine upload dist/sbapp-*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue