-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathJustfile
61 lines (46 loc) · 2.18 KB
/
Justfile
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Export the project
export-web:
rm -rf export/web
mkdir -p export/web
godot --headless --export-release "Web" export/web/index.html
export-linux:
rm -rf export/linux
mkdir -p export/linux
godot --headless --export-release "Linux/X11" export/linux/knakk.x86_64
export-osx:
rm -rf export/osx
mkdir -p export/osx
godot --headless --export-release "OSX" export/osx/knakk.app
export-windows:
rm -rf export/windows
mkdir -p export/windows
godot --headless --export-release "Windows Desktop" export/windows/knakk.exe
export-android:
rm -rf export/android
mkdir -p export/android
godot --headless --export-release "Android aab" export/android/knakk.aab
godot --headless --export-release "Android apk" export/android/knakk.apk
export: export-web export-linux export-osx export-windows export-android
# Upload exported files to various distribution platforms
release-web: export-web
netlify deploy --dir export/web --prod
release-linux: export-linux
butler push export/linux raffomania/knakk:linux
release-osx: export-osx
butler push export/osx raffomania/knakk:osx
release-windows: export-windows
butler push export/windows raffomania/knakk:windows
release-android: export-android
butler push export/android/knakk.apk raffomania/knakk:android
release: release-web release-linux release-osx release-windows release-android
tag-version version:
#!/usr/bin/env sh
rg -q "{{version}}.*[\d-]+" CHANGELOG.md || (echo "Version or release date not found in CHANGELOG.md" && exit 1)
current_code=$(rg -o 'version/code=(.*)' -r '$1' export_presets.cfg | head -n 1)
new_code=$((current_code + 1))
sed -i "s,version/code=.*,version/code=${new_code}," export_presets.cfg
sed -i 's,version/name=".*",version/name="{{version}}",' export_presets.cfg
sed -i 's,application/version=".*",application/version="{{version}}",' export_presets.cfg
sed -i 's,application/short_version=".*",application/short_version="{{version}}",' export_presets.cfg
generate-card-images:
fd png$ GameScreen/Card/source_images -x magick convert {} -resize 354x492 -background transparent -gravity center -extent 364x500 GameScreen/Card/images/{/}