Skip to content

Instantly share code, notes, and snippets.

@sunpazed
Created March 28, 2017 21:39
Show Gist options
  • Save sunpazed/e4aa9ee2de8af8708a4a00a2624cbd8d to your computer and use it in GitHub Desktop.
Save sunpazed/e4aa9ee2de8af8708a4a00a2624cbd8d to your computer and use it in GitHub Desktop.
ConnectIQ build
#!/bin/bash
APP_NAME="<appname>"
KEYS="<path_to_keys>/key/"
P_INFO="<path_to_sdk>/connectiq-sdk-mac-2.2.4/bin/projectInfo.xml"
# kill the simulator if it's running
pkill simulator
# build via monkeyc
monkeyc -y $KEYS/developer_key.der -o $APP_NAME.prg -m manifest.xml -z resources/resources.xml -z resources/settings/* -z resources/strings/strings.xml source/* -w -p $P_INFO -g -d $@
# launch the simulator, and wait
connectiq
sleep 3
# run the app, as the corresponding device type
monkeydo $APP_NAME.prg $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment