scripts: make the error message even more obvious....

This commit is contained in:
Tyler Wilding
2022-04-30 21:32:43 -04:00
parent f21da5527f
commit 8ffcb49cf8
+5 -9
View File
@@ -9,27 +9,27 @@ tasks:
desc: "Extracts Jak 1 - NTSC - Black Label assets" desc: "Extracts Jak 1 - NTSC - Black Label assets"
preconditions: preconditions:
- sh: test -f {{.DECOMP_BIN_RELEASE_DIR}}/decompiler{{.EXE_FILE_EXTENSION}} - sh: test -f {{.DECOMP_BIN_RELEASE_DIR}}/decompiler{{.EXE_FILE_EXTENSION}}
msg: "Couldn't locate decompiler executable -- Have you compiled in release mode?" msg: "Couldn't locate decompiler executable in '{{.DECOMP_BIN_RELEASE_DIR}}/decompiler'"
cmds: cmds:
- '{{.DECOMP_BIN_RELEASE_DIR}}/decompiler "./decompiler/config/jak1_ntsc_black_label.jsonc" "./iso_data" "./decompiler_out" "decompile_code=false"' - '{{.DECOMP_BIN_RELEASE_DIR}}/decompiler "./decompiler/config/jak1_ntsc_black_label.jsonc" "./iso_data" "./decompiler_out" "decompile_code=false"'
boot-game: boot-game:
desc: "Boots the game" desc: "Boots the game"
preconditions: preconditions:
- sh: test -f {{.GK_BIN_RELEASE_DIR}}/gk{{.EXE_FILE_EXTENSION}} - sh: test -f {{.GK_BIN_RELEASE_DIR}}/gk{{.EXE_FILE_EXTENSION}}
msg: "Couldn't locate runtime executable -- Have you compiled in release mode?" msg: "Couldn't locate runtime executable in '{{.GK_BIN_RELEASE_DIR}}/gk'"
cmds: cmds:
- "{{.GK_BIN_RELEASE_DIR}}/gk -boot -fakeiso -debug -v" - "{{.GK_BIN_RELEASE_DIR}}/gk -boot -fakeiso -debug -v"
run-game: run-game:
desc: "Start the game's runtime" desc: "Start the game's runtime"
preconditions: preconditions:
- sh: test -f {{.GK_BIN_RELEASE_DIR}}/gk{{.EXE_FILE_EXTENSION}} - sh: test -f {{.GK_BIN_RELEASE_DIR}}/gk{{.EXE_FILE_EXTENSION}}
msg: "Couldn't locate runtime executable -- Have you compiled in release mode?" msg: "Couldn't locate runtime executable in '{{.GK_BIN_RELEASE_DIR}}/gk'"
cmds: cmds:
- "{{.GK_BIN_RELEASE_DIR}}/gk -fakeiso -debug -v" - "{{.GK_BIN_RELEASE_DIR}}/gk -fakeiso -debug -v"
run-game-quiet: run-game-quiet:
preconditions: preconditions:
- sh: test -f {{.GK_BIN_RELEASE_DIR}}/gk{{.EXE_FILE_EXTENSION}} - sh: test -f {{.GK_BIN_RELEASE_DIR}}/gk{{.EXE_FILE_EXTENSION}}
msg: "Couldn't locate runtime executable -- Have you compiled in release mode?" msg: "Couldn't locate runtime executable in '{{.GK_BIN_RELEASE_DIR}}/gk'"
cmds: cmds:
- "{{.GK_BIN_RELEASE_DIR}}/gk -fakeiso" - "{{.GK_BIN_RELEASE_DIR}}/gk -fakeiso"
repl: repl:
@@ -38,7 +38,7 @@ tasks:
OPENGOAL_DECOMP_DIR: "jak1/" OPENGOAL_DECOMP_DIR: "jak1/"
preconditions: preconditions:
- sh: test -f {{.GOALC_BIN_RELEASE_DIR}}/goalc{{.EXE_FILE_EXTENSION}} - sh: test -f {{.GOALC_BIN_RELEASE_DIR}}/goalc{{.EXE_FILE_EXTENSION}}
msg: "Couldn't locate compiler executable -- Have you compiled in release mode?" msg: "Couldn't locate compiler executable in '{{.GOALC_BIN_RELEASE_DIR}}/goalc'"
cmds: cmds:
- "{{.GOALC_BIN_RELEASE_DIR}}/goalc" - "{{.GOALC_BIN_RELEASE_DIR}}/goalc"
# DEVELOPMENT # DEVELOPMENT
@@ -130,7 +130,3 @@ tasks:
cast-repl: cast-repl:
cmds: cmds:
- cmd: python ./scripts/cast-repl.py - cmd: python ./scripts/cast-repl.py
# Doesn't Currently Work
# clean-all-types:
# cmds:
# - python ./scripts/cleanup-all-types.py