This repository has been archived on 2023-11-19. You can view files and clone it, but cannot push or open issues or pull requests.
goober-ionic/Makefile
2018-11-10 07:36:55 -08:00

58 lines
1.1 KiB
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
prepare:
ionic cordova prepare android --prod
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: androidclean
androidclean:
cd platforms/android && ./gradlew clean
distclean:
rm -r node_modules platforms plugins www
init:
npm install
ionic cordova platform add android
ut:
npm run ionic:build
rm www/manifest.json
cd ubuntutouch && clickable
pwa:
npm run ionic:build
cp resources/icon-512.png www/assets/icon.png
cp -r www ~/opt/Goober