36 lines
744 B
Makefile
36 lines
744 B
Makefile
|
|
PKG_ID = com.monkeystew.goober_m
|
|
|
|
OUT_DIR = platforms/android/app/build/outputs/apk/release
|
|
UNALIGNED = $(OUT_DIR)/app-release-unsigned.apk
|
|
ALIGNED = $(OUT_DIR)/app-release-unsigned-aligned.apk
|
|
APK = $(OUT_DIR)/goober.apk
|
|
|
|
KEYSTORE = ~/android-keystore.jks
|
|
|
|
|
|
lab:
|
|
ionic serve -lc
|
|
|
|
device:
|
|
ionic cordova run android -lc --address 0.0.0.0 --device
|
|
|
|
emulator:
|
|
ionic cordova run android -lc --address 0.0.0.0 --emulator
|
|
|
|
$(UNALIGNED):
|
|
ionic cordova build android --release --prod
|
|
|
|
$(ALIGNED): $(UNALIGNED)
|
|
cd $(OUT_DIR)
|
|
$(ANDROID_HOME)/build-tools/*/zipalign -v -p 4 $< $@
|
|
|
|
$(APK): $(ALIGNED)
|
|
cd $(OUT_DIR)
|
|
$(ANDROID_HOME)/build-tools/*/apksigner sign --ks $(KEYSTORE) --out $@ $<
|
|
ls $@
|
|
|
|
release: $(APK)
|
|
|
|
clean:
|
|
rm $(OUT_DIR)/*.apk
|