forked from remijouannet/graftorio2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (19 loc) · 936 Bytes
/
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
#factorio/bin/x64/factorio --graphics-quality low --video-memory-usage low --load-game factoriofast/saves/_autosave2.zip --threads 4
#/Applications/Factorio.app/Contents/MacOS/factorio --graphics-quality low --video-memory-usage low --threads 4
VERSION=$$(git describe --abbrev=0 --tags)
stylua:
stylua -g '*.lua' -- .
release:
mkdir -p pkg && \
rm -f ./pkg/*.zip && \
git archive --prefix=graftorio2/ -o pkg/graftorio2_$(VERSION).zip HEAD
install-darwin:
cd ../ && zip --exclude="*.git*" --exclude="*pkg*" -r graftorio2/graftorio2_$(VERSION).zip graftorio2 && \
mv graftorio2/graftorio2_$(VERSION).zip ~/Library/Application\ Support/factorio/mods/
install-linux:
cd ../ && zip --exclude="*.git*" --exclude="*pkg*" -r graftorio2/graftorio2_$(VERSION).zip graftorio2 && \
cp graftorio2/graftorio2_$(VERSION).zip ~/bin/factorio/mods/
clean:
rm -rf ./data/prometheus && rm -rf ./data/grafana
docker:
docker-compose up