From 77bb6c1b0ccb27ba36dc6aa324886d405cbf0bab Mon Sep 17 00:00:00 2001 From: Jason Hilder Date: Fri, 10 Jul 2026 08:03:31 +0200 Subject: [PATCH] Setting up sublime build tool. --- build.sh | 3 + gravekeeper.sublime-workspace | 108 +++++++++++++++++++++++++++------- 2 files changed, 89 insertions(+), 22 deletions(-) diff --git a/build.sh b/build.sh index aa3b227..8c0718d 100755 --- a/build.sh +++ b/build.sh @@ -1,6 +1,9 @@ #!/usr/bin/env bash set -e +# Find the odin binary +export PATH="$HOME/.odin:$PATH" + SRC_DIR="src" OUT_DIR="build" OUT_NAME="game" diff --git a/gravekeeper.sublime-workspace b/gravekeeper.sublime-workspace index 5c62b04..fab0329 100644 --- a/gravekeeper.sublime-workspace +++ b/gravekeeper.sublime-workspace @@ -8,9 +8,45 @@ "buffers": [ ], - "build_system": "", + "build_system": "Packages/User/Odin.sublime-build", "build_system_choices": [ + [ + [ + [ + "Packages/User/Odin.sublime-build", + "" + ], + [ + "Packages/User/Odin.sublime-build", + "Build Only" + ], + [ + "Packages/User/Odin.sublime-build", + "Optimized Build + Run" + ], + [ + "Packages/User/Odin.sublime-build", + "Web (WASM) Build" + ], + [ + "Packages/User/Odin.sublime-build", + "Web (WASM) Optimized" + ], + [ + "Packages/User/Odin.sublime-build", + "Build + Debugger" + ], + [ + "Packages/User/Odin.sublime-build", + "Clean" + ] + ], + [ + "Packages/User/Odin.sublime-build", + "" + ] + ] ], "build_varint": "", "command_palette": @@ -19,6 +55,22 @@ "last_filter": "", "selected_items": [ + [ + "lsp", + "LSP: Troubleshoot Server" + ], + [ + "ls", + "Preferences: LSP Settings" + ], + [ + "key", + "Preferences: Key Bindings" + ], + [ + "ke", + "Preferences: Key Bindings" + ], [ "colo", "UI: Select Color Scheme" @@ -31,14 +83,6 @@ "setting", "Preferences: Settings" ], - [ - "ke", - "Preferences: Key Bindings" - ], - [ - "key", - "Preferences: Key Bindings" - ], [ "insta", "Package Control: Install Package" @@ -59,10 +103,6 @@ "keybinds", "Preferences: Key Bindings" ], - [ - "lsp", - "Preferences: LSP Settings" - ], [ "keyb", "Preferences: Key Bindings" @@ -155,6 +195,7 @@ "file_history": [ "/home/jason/Projects/gravekeeper/src/main.odin", + "/home/jason/Projects/gravekeeper/build.sh", "/home/jason/.dotfiles/config/nvim/init.lua", "/home/jason/.dotfiles/config/alacritty/alacritty.toml", "/home/jason/.dotfiles/scripts/installs/install_php", @@ -175,7 +216,7 @@ ], "find": { - "height": 49.0 + "height": 87.0 }, "find_in_files": { @@ -189,6 +230,7 @@ "case_sensitive": false, "find_history": [ + "\n}" ], "highlight": true, "in_selection": false, @@ -215,7 +257,7 @@ ], "incremental_find": { - "height": 49.0 + "height": 87.0 }, "input": { @@ -246,7 +288,7 @@ "menu_visible": false, "output.LSP Log Panel": { - "height": 0.0, + "height": 250.0, "history": [ ] @@ -258,6 +300,13 @@ [ ] }, + "output.exec": + { + "height": 963.0, + "history": + [ + ] + }, "output.find_results": { "height": 0.0, @@ -272,11 +321,18 @@ [ ] }, - "pinned_build_system": "", + "output.mdpopups-dummy": + { + "height": 0.0, + "history": + [ + ] + }, + "pinned_build_system": "Packages/User/Odin.sublime-build", "project": "gravekeeper.sublime-project", "replace": { - "height": 94.0 + "height": 170.0 }, "save_all_on_build": true, "select_file": @@ -285,6 +341,14 @@ "last_filter": "", "selected_items": [ + [ + "mai", + "src/main.odin" + ], + [ + "bui", + "build.sh" + ], [ "ini", "config/nvim/init.lua" @@ -303,15 +367,15 @@ "select_project": { "height": 657.0, - "last_filter": "do", + "last_filter": "", "selected_items": [ [ - "do", - "~/.dotfiles/dotfiles.sublime-project" + "", + "~/Projects/gravekeeper/gravekeeper.sublime-project" ], [ - "", + "do", "~/.dotfiles/dotfiles.sublime-project" ], [