Skip to content

Instantly share code, notes, and snippets.

@treethought

treethought/Makefile

Created Sep 11, 2017
Embed
What would you like to do?
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
You can’t perform that action at this time.