This repository has been archived by the owner on Aug 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
44 lines (36 loc) · 1.47 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
UNAME_S := $(shell uname -s)
npm :=
ifeq ($(UNAME_S),Darwin)
npm += CXX=clang++
endif
npm += npm
start-dev: clean apply-patches
@echo "You are ready to start developing."
@echo "use \"tns run ios\" or \"tns run android\""
@echo "for tests:"
@echo "use \"tns test ios\" or \"tns test android\""
clean-install: clean
# This is where we apply patches needed to the modules that we depend on.
apply-patches: init-npm
patch -p0 < nodeify_temporary_patch.patch
init-npm:
$(npm) install
rm -rf node_modules/nativescript-zxing/platforms/android/
link: start-dev
# cd dedis/cothority; \
# npm i; \
# npm link; \
# npm run-script build || echo Error is normal here...
# pwd
npm link @dedis/cothority
clean:
rm -rf node_modules platforms hooks
release-android:
if [ ! "$$DEDIS_ANDROID_PASS" ]; then echo "Please set DEDIS_ANDROID_PASS"; exit 1; fi
tns build android --key-store-path dedis-development.jks --key-store-password $$DEDIS_ANDROID_PASS \
--key-store-alias popcoins --key-store-alias-password $$DEDIS_ANDROID_PASS --release
echo "Build successful - apk is at platforms/android/app/build/outputs/apk/release/app-release.ap"
release-ios: clean
tns prepare ios --release
xcodebuild -workspace platforms/ios/popcoins.xcworkspace -scheme popcoins -archivePath platforms/ios/builds/popcoins.xcarchive archive
xcodebuild -exportArchive -exportOptionsPlist app/App_Resources/iOS/exportPlist.plist -archivePath platforms/ios/builds/popcoins.xcarchive -exportPath platforms/ios/builds