Skip to content

Instantly share code, notes, and snippets.

@treethought
Created September 11, 2017 07:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save treethought/a8348210d0cee7a21320f34b75e763d7 to your computer and use it in GitHub Desktop.
Save treethought/a8348210d0cee7a21320f34b75e763d7 to your computer and use it in GitHub Desktop.
Simple Makefile for Quasar/Cordova workflow
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