From 7cc91b2c0b316a16632e51813aac8cc660e0d035 Mon Sep 17 00:00:00 2001 From: "NGnius (Graham)" Date: Thu, 28 Jul 2022 17:00:42 -0400 Subject: [PATCH] Update build config --- .gitignore | 1 + backend-rs/build.sh | 3 ++- main.py | 2 +- package.json | 14 +++++++------- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index dcf0ac3..34d5481 100644 --- a/.gitignore +++ b/.gitignore @@ -42,6 +42,7 @@ yalc.lock # ignore Rust compiler files /backend-rs/target backend +/bin/backend # packaged teasers *.zip diff --git a/backend-rs/build.sh b/backend-rs/build.sh index b7838e5..9f60798 100755 --- a/backend-rs/build.sh +++ b/backend-rs/build.sh @@ -1,4 +1,5 @@ #!/bin/bash cross build --release -cp ./target/release/fantastic-rs ../backend +mkdir ../bin +cp ./target/release/fantastic-rs ../bin/backend diff --git a/main.py b/main.py index 4db3d9c..7c66dda 100644 --- a/main.py +++ b/main.py @@ -25,6 +25,6 @@ class Plugin: # Asyncio-compatible long-running code, executed in a task when the plugin is loaded async def _main(self): # startup - self.backend_proc = subprocess.Popen([PARENT_DIR + "/backend"]) + self.backend_proc = subprocess.Popen([PARENT_DIR + "/bin/backend"]) while True: await asyncio.sleep(1) diff --git a/package.json b/package.json index f985759..f5f2e4e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "decky-plugin-template", - "version": "0.0.1", + "name": "Fantastic", + "version": "0.3.1", "description": "A template to quickly create decky plugins from scratch, based on TypeScript and webpack", "scripts": { "build": "shx rm -rf dist && rollup -c", @@ -9,7 +9,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/SteamDeckHomebrew/decky-plugin-template.git" + "url": "git+https://github.com/NGnius/Fantastic.git" }, "keywords": [ "decky", @@ -19,12 +19,12 @@ "steam-deck", "deck" ], - "author": "Jonas Dellinger ", - "license": "GPL-2.0-or-later", + "author": "NGnius ", + "license": "GPL-3.0", "bugs": { - "url": "https://github.com/SteamDeckHomebrew/decky-plugin-template/issues" + "url": "https://github.com/NGnius/Fantastic/issues" }, - "homepage": "https://github.com/SteamDeckHomebrew/decky-plugin-template#readme", + "homepage": "https://github.com/NGnius/Fantastic#readme", "devDependencies": { "@rollup/plugin-commonjs": "^21.1.0", "@rollup/plugin-json": "^4.1.0",