-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (34 loc) · 1.29 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
.PHONY: dev prod
dev:
lein clean && lein with-profile +macos,+dev trampoline run
local:
lein clean && lein with-profile +macos,+prod trampoline run
uberjar:
lein clean && lein uberjar
run-jar:
java -jar target/fruit-economy-standalone.jar
jar-test: uberjar run-jar
echo "DONE"
prod: uberjar prod-mac # prod-win prod-linux ## Others can only be built on respective systems, so test later
echo "DONE"
prod-mac:
export JAVA_HOME=`/usr/libexec/java_home` && \
cd releases && \
$$JAVA_HOME/bin/jpackage --name "Fruit Economy" \
--input ../target --main-jar fruit-economy-standalone.jar \
--main-class clojure.main --arguments -m --arguments fruit-economy.core \
--java-options -XstartOnFirstThread
prod-win:
export JAVA_HOME=`/usr/libexec/java_home` && \
cd releases && \
$$JAVA_HOME/bin/jpackage --name "Fruit Economy" \
--input ../target --main-jar fruit-economy-standalone.jar \
--main-class clojure.main --arguments -m --arguments fruit-economy.core \
--type exe
prod-linux:
export JAVA_HOME=`/usr/libexec/java_home` && \
cd releases && \
$$JAVA_HOME/bin/jpackage --name "Fruit Economy" \
--input ../target --main-jar fruit-economy-standalone.jar \
--main-class clojure.main --arguments -m --arguments fruit-economy.core \
--type pkg --linux-shortcut