-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathjustfile
More file actions
541 lines (465 loc) · 21.8 KB
/
Copy pathjustfile
File metadata and controls
541 lines (465 loc) · 21.8 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
set dotenv-load
set dotenv-filename := "build.env"
set dotenv-required
# Get the default architecture
default_arch := shell("rustc --version --verbose | grep host | awk '{print $2}'")
default:
just --list
# Safely symlink src to dest
_symlink src dest:
#!/usr/bin/env python3
# Use python for a cross-platform safe symlink that isn't dependent on Git bash installation settings
from pathlib import Path
src = Path("{{src}}")
dest = Path("{{dest}}")
if dest.exists():
if not dest.is_symlink():
print(f"Destination {{dest}} already exists and is NOT a symlink!")
exit(1)
target = (dest.parent / dest.readlink()).resolve()
if not target.samefile(src.resolve()):
print(f"Destination {{dest}} already exists, but it points to {target} instead of {src.resolve()}.")
exit(1)
# symlink already exists and is valid
exit(0)
try:
dest.symlink_to(src.resolve(), True)
exit(0)
except OSError as e:
print((f"Failed to create symlink from {dest.resolve()} to {src.resolve()}. "
"If you are on Windows, you MUST enable Developer Mode in system settings."))
exit(1)
# Create build/
@_make-build-dir:
mkdir -p build
# Create build/backstitch
@_make-plugin-dir: _make-build-dir
mkdir -p build/backstitch
# Clone a repository to a directory and check out a commit.
_clone repo_url directory checkout:
#!/usr/bin/env sh
# set -euxo pipefail
# if directory is empty (as a result of a previous clone that failed), remove it
if [[ -n $(find "{{directory}}" -maxdepth 0 -type d -empty) ]]; then
if rmdir "{{directory}}"; then
echo "Removed directory: {{directory}}"
else
echo "\033[31m***CLONE: Failed to clean directory: {{directory}}\033[0m"
exit 1
fi
fi
# If the directory doesn't exist, freshly clone
if [[ ! -d "{{directory}}" ]]; then
git clone "git@github.com:{{repo_url}}" "{{directory}}" --no-checkout --filter=blob:none
fi
# Require .git to exist
if [[ ! -d "{{directory}}/.git" ]]; then
echo "\033[31m***CLONE: Not a git repository: {{directory}}\033[0m"
exit 1
fi
# Ensure the git repository is actually valid
# Force Git to use THIS directory's metadata only, so the parent isn't grabbed.
# (If the parent is grabbed, we could corrupt the enclosing repository!)
if ! GIT_DIR="{{absolute_path(directory)}}/.git" GIT_WORK_TREE="{{absolute_path(directory)}}" \
git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
echo "Invalid git repository: {{directory}}"
exit 1
fi
if git -C "{{directory}}" remote | grep -q '^origin$'; then
git -C "{{directory}}" remote set-url origin "git@github.com:{{repo_url}}"
else
git -C "{{directory}}" remote add origin "git@github.com:{{repo_url}}"
fi
DEPTH_ARG="--depth=1"
# if this doesn't fail, then the repo has history
if git -C "{{directory}}" rev-parse --abbrev-ref HEAD >/dev/null 2>&1; then
if [[ $(git -C "{{directory}}" rev-parse --is-shallow-repository) = "false" ]]; then
DEPTH_ARG=""
fi
fi
# check if the HEAD is the same as the checkout
if [[ $(git -C "{{directory}}" rev-parse --abbrev-ref HEAD) = "{{checkout}}" ]]; then
echo "*** CLONE: {{directory}}: Pulling updates from origin/{{checkout}}*******************"
# if `pull --ff-only` fails, try to reset the branch to the checkout ref at origin
if ! git -C "{{directory}}" pull $DEPTH_ARG --ff-only --quiet origin "{{checkout}}" >/dev/null 2>&1; then
# don't do this if there are local changes
if git -C "{{directory}}" status --porcelain | grep -q '^[^?][^ ]'; then
echo "\033[33m*** CLONE: {{directory}}: Local changes detected, skipping pull...\033[0m"
exit 0
fi
echo "*** CLONE: {{directory}}: {{checkout}} is out-of-sync with origin/{{checkout}}, fetching and resetting..."
git -C "{{directory}}" fetch $DEPTH_ARG origin {{checkout}}
git -C "{{directory}}" reset --hard "origin/{{checkout}}"
fi
else
echo "*** CLONE: {{directory}}: Fetching updates from origin/{{checkout}}*******************"
git -C "{{directory}}" fetch $DEPTH_ARG origin {{checkout}}
fi
echo "*** CLONE: {{directory}}: Checking out origin/{{checkout}}*******************"
# try checkout, if we get an error fetch then try again.
# this won't pull updates from the remote, but that's probably fine for now.
# if we need to handle local changes, this will need to be refactored (to force reset?)
if git -C "{{directory}}" checkout "{{checkout}}" | grep -q '^fatal'; then
git -C "{{directory}}" checkout "{{checkout}}"
fi
# Clone our desired project and checkout the proper commit.
[arg('project', pattern='moddable-platformer|moddable-pong|threadbare')]
_acquire-project project: _make-build-dir
#!/usr/bin/env sh
# set -euxo pipefail
case "{{project}}" in
"moddable-platformer")
just _clone "$MODDABLE_PLATFORMER_REPO" "build/{{project}}" "$MODDABLE_PLATFORMER_REF"
;;
"moddable-pong")
just _clone "$MODDABLE_PONG_REPO" "build/{{project}}" "$MODDABLE_PONG_REF"
;;
"threadbare")
just _clone "$THREADBARE_REPO" "build/{{project}}" "$THREADBARE_REF"
;;
esac
# Clone the Godot repository and checkout the proper commit.
_acquire-godot: _make-build-dir
just _clone "$GODOT_REPO" "build/godot" "$GODOT_REF"
# Clone the GodotFormatters repository and checkout the proper commit.
_acquire-formatters: _make-build-dir
just _clone "$GODOT_FORMATTERS_REPO" "build/GodotFormatters" "$GODOT_FORMATTERS_REF"
# Link our plugin build directory to the desired project.
_link-project project: (_acquire-project project) _make-plugin-dir
mkdir -p "build/{{project}}/addons"
just _symlink "build/backstitch" "build/{{project}}/addons/backstitch"
# Link our custom Godot editor module
[arg('skip_godot_clone', pattern='yes|no')]
_link-godot skip_godot_clone="no":
#!/usr/bin/env sh
# set -euxo pipefail
if [[ "{{skip_godot_clone}}" = "no" ]] ; then
echo "**** Cloning Godot... ****"
just _acquire-godot
else
echo "**** Skipping Godot clone... ****"
fi
rm -f "build/godot/modules/backstitch_editor"
# Link the assets directory for our plugin
_link-public: _make-plugin-dir
just _symlink "public" "build/backstitch/public"
# Build the Godot editor with our editor module linked in. Available profiles are release, debug, or sani (for use_asan=yes)
[arg('profile', pattern='release|debug|sani')]
[arg('skip_godot_clone', pattern='yes|no')]
build-godot profile skip_godot_clone="no": (_link-godot skip_godot_clone)
#!/usr/bin/env sh
# set -euxo pipefail
EXTRA_BUILD_FLAG=""
EXTRA_ID_FLAG=""
# check for macos; if yes, add `generate_bundle=yes`
if [[ "{{os()}}" = "macos" ]] ; then
EXTRA_BUILD_FLAG="generate_bundle=yes"
# check for the .cargo/.devidentity file; if it exists, add `bundle_sign_identity=<contents>`
if [ -f .cargo/.devidentity ]; then
DEV_ID="$(cat .cargo/.devidentity)"
EXTRA_ID_FLAG="bundle_sign_identity=$DEV_ID"
echo "signing godot with identity: $DEV_ID"
else
echo "**** No development identity file found; if you want to enable code signing, create a .cargo/.devidentity file with your dev ID."
echo "**** Example: echo 'Developer ID Application: Your Name (TEAMID)' > .cargo/.devidentity"
echo "**** HINT: use 'security find-identity -p codesigning -v' to find your dev ID."
fi
fi
cd "build/godot"
# TODO: figure out a way to see if scons actually needs a run, since this takes forever even when built
if [[ {{profile}} = "release" ]] ; then
scons dev_build=no debug_symbols=no target=editor deprecated=yes minizip=yes compiledb=yes metal=no module_text_server_fb_enabled=yes "$EXTRA_BUILD_FLAG" "$EXTRA_ID_FLAG"
elif [[ {{profile}} = "sani" ]] ; then
scons dev_build=yes target=editor compiledb=yes deprecated=yes minizip=yes tests=yes use_asan=yes metal=no module_text_server_fb_enabled=yes "$EXTRA_BUILD_FLAG" "$EXTRA_ID_FLAG"
else
scons dev_build=yes target=editor compiledb=yes deprecated=yes minizip=yes tests=yes metal=no module_text_server_fb_enabled=yes "$EXTRA_BUILD_FLAG" "$EXTRA_ID_FLAG"
fi
# Build the Rust plugin binaries.
_build-plugin architecture profile tracing_support:
#!/usr/bin/env sh
if [[ {{tracing_support}} = "tokio-console" ]] ; then
export RUSTFLAGS="--cfg tokio_unstable"
cargo build --profile="{{profile}}" --target="{{architecture}}" --features "tokio-console"
else
cargo build --profile="{{profile}}" --target="{{architecture}}"
fi
# Sign macOS plugin binaries using the identity from .cargo/.devidentity (one line, plain text).
@_sign-macos-plugin:
#!/usr/bin/env sh
# set -euxo pipefail
# check for CI env variable, if it is set, skip signing
if [ "$CI" = "1" ]; then
echo "Skipping macOS plugin signing on CI"
exit 0
fi
if [ ! -f .cargo/.devidentity ]; then
echo "**** No development identity file found; if you want to enable code signing, create a .cargo/.devidentity file with your dev ID."
echo "**** Example: echo 'Developer ID Application: Your Name (TEAMID)' > .cargo/.devidentity"
echo "**** HINT: use 'security find-identity -p codesigning -v' to find your dev ID."
exit 0
fi
identity=$(cat .cargo/.devidentity)
framework="build/backstitch/bin/libbackstitch_rust_core.macos.framework"
if [ ! -d "$framework" ]; then
exit 0
fi
for dylib in "$framework"/*.dylib; do
[ -f "$dylib" ] && codesign -s "$identity" -f "$dylib"
done
codesign --deep -s "$identity" -f "$framework"
# Build the multi-arch target for MacOS.
[parallel]
_build-plugin-all-macos profile tracing_support: (_build-plugin "aarch64-apple-darwin" profile tracing_support) \
(_build-plugin "x86_64-apple-darwin" profile tracing_support) _make-plugin-dir
mkdir -p build/backstitch/bin
# Copy the entire macos directory to get the Resources framework directory
rm -rf "build/backstitch/bin/libbackstitch_rust_core.macos.framework"
cp -r "rust/macos/libbackstitch_rust_core.macos.framework" "build/backstitch/bin/libbackstitch_rust_core.macos.framework"
# Rather than copying the generated .dylibs, we combine them into a single one.
lipo -create -output build/backstitch/bin/libbackstitch_rust_core.macos.framework/libbackstitch_rust_core.dylib \
target/aarch64-apple-darwin/{{profile}}/libbackstitch_rust_core.dylib \
target/x86_64-apple-darwin/{{profile}}/libbackstitch_rust_core.dylib
just _sign-macos-plugin
[parallel]
_build-plugin-single-arch architecture profile tracing_support: (_build-plugin architecture profile tracing_support) _make-plugin-dir
#!/usr/bin/env sh
# set -euo pipefail
mkdir -p build/backstitch/bin
# Copy the entire macos directory to get the Resources framework directory
rm -rf "build/backstitch/bin/libbackstitch_rust_core.macos.framework"
cp -r "rust/macos/libbackstitch_rust_core.macos.framework" "build/backstitch/bin/libbackstitch_rust_core.macos.framework"
if [ -f "target/{{architecture}}/{{profile}}/backstitch_rust_core.dll" ] ; then
cp "target/{{architecture}}/{{profile}}/backstitch_rust_core.dll" \
build/backstitch/bin/backstitch_rust_core.windows.{{architecture}}.dll
fi
if [ -f "target/{{architecture}}/{{profile}}/libbackstitch_rust_core.so" ] ; then
cp "target/{{architecture}}/{{profile}}/libbackstitch_rust_core.so" \
build/backstitch/bin/backstitch_rust_core.linux.{{architecture}}.so
fi
if [ -f "target/{{architecture}}/{{profile}}/libbackstitch_rust_core.dylib" ] ; then
cp "target/{{architecture}}/{{profile}}/libbackstitch_rust_core.dylib" \
build/backstitch/bin/libbackstitch_rust_core.macos.framework/libbackstitch_rust_core.dylib
just _sign-macos-plugin
fi
if [ -f "target/{{architecture}}/{{profile}}/backstitch_rust_core.pdb" ] ; then
cp "target/{{architecture}}/{{profile}}/backstitch_rust_core.pdb" \
build/backstitch/bin/backstitch_rust_core.pdb
fi
# Write plugin.cfg and Backstitch.gdextension
_configure-backstitch: _make-plugin-dir
#!/usr/bin/env python3
import os
import subprocess
# load the version from git
print(f"Current directory: {os.getcwd()}")
print(os.listdir())
git_describe = subprocess.check_output(["git", "describe", "--tags", "--abbrev=6"]).decode("utf-8").strip()
# if it has more than two `-` in the version, replace all the subsequent `-` with `+`
if git_describe.count("-") >= 2:
first_index = git_describe.find("-")
if first_index != -1:
git_describe = git_describe[:first_index] + "-" + git_describe[first_index + 1 :].replace("-", "+")
print(f"Loaded version from Git repository: {git_describe}")
with open("build/backstitch/plugin.cfg", "w") as file:
file.write(f"""[plugin]
name="Backstitch"
description="Version control for Godot"
author="Ink & Switch"
version="{git_describe}"
script=""
""")
with open("build/backstitch/Backstitch.gdextension", "w") as file:
file.write(f"""[configuration]
entry_symbol = "gdext_rust_init"
compatibility_minimum = {os.getenv("MINIMUM_GODOT")}
reloadable = true
[libraries]
linux.debug.x86_64 = "bin/backstitch_rust_core.linux.x86_64-unknown-linux-gnu.so"
linux.release.x86_64 = "bin/backstitch_rust_core.linux.x86_64-unknown-linux-gnu.so"
linux.debug.arm64 = "bin/backstitch_rust_core.linux.aarch64-unknown-linux-gnu.so"
linux.release.arm64 = "bin/backstitch_rust_core.linux.aarch64-unknown-linux-gnu.so"
linux.debug.arm32 = "bin/backstitch_rust_core.linux.armv7-unknown-linux-gnueabihf.so"
linux.release.arm32 = "bin/backstitch_rust_core.linux.armv7-unknown-linux-gnueabihf.so"
windows.debug.x86_64 = "bin/backstitch_rust_core.windows.x86_64-pc-windows-msvc.dll"
windows.release.x86_64 = "bin/backstitch_rust_core.windows.x86_64-pc-windows-msvc.dll"
windows.debug.arm64 = "bin/backstitch_rust_core.windows.aarch64-pc-windows-msvc.dll"
windows.release.arm64 = "bin/backstitch_rust_core.windows.aarch64-pc-windows-msvc.dll"
macos.debug = "bin/libbackstitch_rust_core.macos.framework/libbackstitch_rust_core.dylib"
macos.release = "bin/libbackstitch_rust_core.macos.framework/libbackstitch_rust_core.dylib"
""")
# Build the plugin and output it to the plugin build dir. For MacOS multi-arch, use architecture=all-apple-darwin to build all architectures.
[parallel]
[arg('profile', pattern='release|debug')]
[arg('tracing_support', pattern='none|tokio-console')]
build-backstitch profile architecture=(default_arch) tracing_support="none": _configure-backstitch _link-public
#!/usr/bin/env sh
# set -euxo pipefail
if [[ "{{architecture}}" = "all-apple-darwin" ]] ; then
just _build-plugin-all-macos "{{profile}}" "{{tracing_support}}"
exit 0
fi
profile="release"
if [[ "{{profile}}" = "debug" ]] ; then
profile="release_debug"
fi
just _build-plugin-single-arch "{{architecture}}" "$profile" "{{tracing_support}}"
# Reset the Godot repository, removing the linked module and resetting the repo state.
clean-godot:
#!/usr/bin/env sh
# set -euxo pipefail
if [[ ! -d "build" ]]; then
exit 0
fi
cd "build"
# set -euxo pipefail
if [[ ! -d "godot" ]]; then
exit 0
fi
cd godot
git checkout -f $GODOT_REF
git clean -xdf
# Remove any built Backstitch artifacts.
clean-backstitch:
#!/usr/bin/env sh
# set -euxo pipefail
cargo clean
if [[ ! -d "build/backstitch" ]]; then
exit 0
fi
rm -rf "build/backstitch"
# Clean a single project, resetting the repository and unlinking Backstitch.
[arg('project', pattern='moddable-platformer|moddable-pong|threadbare')]
clean-project project:
#!/usr/bin/env sh
# set -euxo pipefail
case "{{project}}" in
"moddable-platformer")
checkout="$MODDABLE_PLATFORMER_REF"
;;
"moddable-pong")
checkout="$MODDABLE_PONG_REF"
;;
"threadbare")
checkout="$THREADBARE_REF"
;;
esac
if [[ ! -d "build" ]]; then
exit 0
fi
cd "build"
if [[ ! -d "{{project}}" ]]; then
exit 0
fi
cd {{project}}
git checkout -f "$checkout"
git clean -xdf
# Clean Backstitch, and the projects threadbare, moddable-platformer.
clean: (clean-project "threadbare") (clean-project "moddable-platformer") (clean-project "moddable-pong") clean-backstitch
# Write to the project .cfg with a new server url
[arg('project', pattern='moddable-platformer|moddable-pong|threadbare')]
_write-url project url: (_link-project project)
#!/usr/bin/env python3
import os
import subprocess
from pathlib import Path
# For now, if the URL is blank (default), don't touch the config.
# When we have an actual serve command, we can then expect the user to always specify.
if "{{url}}" == "":
exit(0)
path = "build/{{project}}/backstitch.cfg"
try:
f = open(path)
except FileNotFoundError:
lines = []
else:
with f: lines = f.readlines()
new_lines: list[str] = []
found_backstitch = False
for line in lines:
# place the server url immediately after backstitch
if line.startswith("[backstitch]"):
found_backstitch = True
new_lines.append(line)
new_lines.append('server_url="{{url}}"\n')
# skip future server URLs
elif not line.startswith("server_url="):
new_lines.append(line)
if not found_backstitch:
new_lines = ['[backstitch]\n', 'server_url="{{url}}"']
with open(path, "w") as file:
file.writelines(new_lines)
[arg('project', pattern='moddable-platformer|moddable-pong|threadbare')]
[arg('backstitch_profile', pattern='release|debug')]
[arg('godot_profile', pattern='release|debug|sani')]
[arg('tracing_support', pattern='none|tokio-console')]
[arg('skip_godot_clone', pattern='yes|no')]
echo-parms project="moddable-platformer" backstitch_profile="release" godot_profile="release" server_url="" tracing_support="none" skip_godot_clone="no":
#!/usr/bin/env sh
# set -euxo pipefail
echo "backstitch_profile: {{backstitch_profile}}"
echo "godot_profile: {{godot_profile}}"
echo "server_url: {{server_url}}"
echo "tracing_support: {{tracing_support}}"
echo "skip_godot_clone: {{skip_godot_clone}}"
# Prepare a project for launch with Godot. Available projects are threadbare, moddable-platformer, moddable-pong.
[parallel]
[arg('project', pattern='moddable-platformer|moddable-pong|threadbare')]
[arg('backstitch_profile', pattern='release|debug')]
[arg('godot_profile', pattern='release|debug|sani')]
[arg('tracing_support', pattern='none|tokio-console')]
[arg('skip_godot_clone', pattern='yes|no')]
prepare project="moddable-platformer" backstitch_profile="release" godot_profile="release" server_url="" tracing_support="none" skip_godot_clone="no": \
(echo-parms project backstitch_profile godot_profile server_url tracing_support skip_godot_clone) (_link-project project) (build-godot godot_profile skip_godot_clone) (build-backstitch backstitch_profile default_arch tracing_support) (_write-url project server_url)
# Launch a project with Godot. Available projects are threadbare, moddable-platformer, moddable-pong.
[arg('project', pattern='moddable-platformer|moddable-pong|threadbare')]
[arg('backstitch_profile', pattern='release|debug')]
[arg('godot_profile', pattern='release|debug|sani')]
[arg('tracing_support', pattern='none|tokio-console')]
[arg('skip_godot_clone', pattern='yes|no')]
launch project="moddable-platformer" backstitch_profile="release" godot_profile="release" server_url="" tracing_support="none" skip_godot_clone="no": \
(prepare project backstitch_profile godot_profile server_url tracing_support skip_godot_clone)
#!/usr/bin/env sh
# set -euxo pipefail
case "{{arch()}}" in
"x86_64")
arch=x86_64 ;;
"aarch64")
arch=arm64 ;;
*)
echo "Unsupported architecture for development: {{arch()}}."
echo "If you think this architecture should be supported, please open an issue on Github with your use-case and system details."
exit 1 ;;
esac
case "{{os()}}" in
"windows")
platform="windows"
ext=".exe" ;;
"linux")
platform="linuxbsd"
ext="" ;;
"macos")
platform="macos"
ext="" ;;
*)
echo "Unsupported OS for development: {{os()}}."
echo "If you think this OS should be supported, please open an issue on Github with your use-case and system details."
exit 1 ;;
esac
if [[ "{{os()}}" = "macos" ]] ; then
if [[ {{godot_profile}} = "release" ]] ; then
godot_path="build/godot/bin/godot_macos_editor.app/Contents/MacOS/Godot"
else
godot_path="build/godot/bin/godot_macos_editor_dev.app/Contents/MacOS/Godot"
fi
else
if [[ {{godot_profile}} = "release" ]] ; then
godot_path="build/godot/bin/godot.$platform.editor.$arch$ext"
else
godot_path="build/godot/bin/godot.$platform.editor.dev.$arch$ext"
fi
fi
$godot_path -e --path "build/{{project}}"
rebase-godot:
#!/usr/bin/env sh
# set -euxo pipefail
.scripts/rebase_godot.sh