Created
September 11, 2017 07:01
-
-
Save treethought/a8348210d0cee7a21320f34b75e763d7 to your computer and use it in GitHub Desktop.
Simple Makefile for Quasar/Cordova workflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BASEDIR=$(CURDIR) | |
CORDOVADIR = $(BASEDIR)/cordova | |
ABDDIR = ~/Library/Android/sdk/platform-tools | |
KEYSTORE = YOURSTORE | |
STOREPWD = YOURPASSWORD | |
KEYALIAS = YOURALIAS | |
KEYPWD = YOURPASSWORD | |
run: rebuild cordova_run | |
rebuild cordova_run && cd $(BASEDIR) | |
test: rebuild cordova_run debug | |
rebuild cordova_run debug && cd $(BASEDIR) | |
rebuild: | |
@echo 'cleaning and building app' | |
cd $(BASEDIR) && quasar clean && quasar build | |
cordova_run: | |
@echo 'Running cordova' | |
cd $(CORDOVADIR) && cordova run android && cd $(BASEDIR) | |
debug: | |
@echo 'starting adb' | |
cd $(ABDDIR) && adb logcat -v color -v brief -D chromium:D Avrcp:D *:F | |
release: | |
cd $(CORDOVADIR) && cordova run android --release -- --keystore=$(KEYSTORE) --storePassword=$(STOREPWD) --alias=$(KEYALIAS) --password=$(KEYPWD) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment