diff --git a/desktop/build-linux-32.json b/desktop/build-linux-32.json index 9bdaa5fe..3497c88e 100644 --- a/desktop/build-linux-32.json +++ b/desktop/build-linux-32.json @@ -4,7 +4,7 @@ "executable": "Tick's Tales", "appjar": "target/advent-standalone.jar", "mainclass": "advent/core/desktop_launcher", - "resources": ["resources/icon" ], + "resources": ["resources/icon", "steam_appid.txt" ], "minimizejre": "soft", "outdir": "target/linux/i586" } diff --git a/desktop/build-linux-64.json b/desktop/build-linux-64.json index fc7106dd..088dab4f 100644 --- a/desktop/build-linux-64.json +++ b/desktop/build-linux-64.json @@ -4,7 +4,7 @@ "executable": "Tick's Tales", "appjar": "target/advent-standalone.jar", "mainclass": "advent/core/desktop_launcher", - "resources": ["resources/icon" ], + "resources": ["resources/icon", "steam_appid.txt" ], "minimizejre": "soft", "outdir": "target/linux/amd64" } diff --git a/desktop/build-osx.json b/desktop/build-osx.json index 8e00b398..7ec1cc3b 100644 --- a/desktop/build-osx.json +++ b/desktop/build-osx.json @@ -4,7 +4,7 @@ "executable": "Tick's Tales", "appjar": "target/advent-standalone.jar", "mainclass": "advent/core/desktop_launcher", - "resources": ["resources/icon" ], + "resources": ["resources/icon", "steam_appid.txt"], "minimizejre": "soft", "outdir": "target/osx/Tick's Tales.app" } diff --git a/desktop/build-windows.json b/desktop/build-windows.json index 7e28b2f5..3e03ed2f 100644 --- a/desktop/build-windows.json +++ b/desktop/build-windows.json @@ -4,7 +4,7 @@ "executable": "TicksTales", "appjar": "target/advent-standalone.jar", "mainclass": "advent/core/desktop_launcher", - "resources": [], + "resources": ["steam_appid.txt"], "minimizejre": "soft", "outdir": "target/windows/" } diff --git a/desktop/src-common/advent/core.clj b/desktop/src-common/advent/core.clj index 234133bd..fe6136fb 100644 --- a/desktop/src-common/advent/core.clj +++ b/desktop/src-common/advent/core.clj @@ -15,7 +15,9 @@ [advent.pathfind]) (:import [com.badlogic.gdx.graphics Pixmap Pixmap$Filter Texture Texture$TextureFilter] [com.badlogic.gdx.graphics.g2d TextureRegion] - [com.badlogic.gdx Gdx Application])) + [com.badlogic.gdx Gdx Application] + [java.io FileOutputStream File PrintStream]) + ) (defonce am (asset-manager)) @@ -24,6 +26,7 @@ (defgame advent :on-create (fn [this] + (clojure.tools.logging/log-capture! *ns* :warn :error) (steam/init) (set-screen! this title/title-screen))) @@ -34,5 +37,5 @@ (try (screen-fn) (catch Exception e (.log Gdx/app "ERROR" (with-out-str (.printStackTrace e))) - (log/error e) + (log/error e (with-out-str (.printStackTrace e))) (set-screen! advent title/title-screen)))))