Update build config
This commit is contained in:
parent
4066f4e8ce
commit
7cc91b2c0b
4 changed files with 11 additions and 9 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -42,6 +42,7 @@ yalc.lock
|
||||||
# ignore Rust compiler files
|
# ignore Rust compiler files
|
||||||
/backend-rs/target
|
/backend-rs/target
|
||||||
backend
|
backend
|
||||||
|
/bin/backend
|
||||||
|
|
||||||
# packaged teasers
|
# packaged teasers
|
||||||
*.zip
|
*.zip
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cross build --release
|
cross build --release
|
||||||
cp ./target/release/fantastic-rs ../backend
|
mkdir ../bin
|
||||||
|
cp ./target/release/fantastic-rs ../bin/backend
|
||||||
|
|
2
main.py
2
main.py
|
@ -25,6 +25,6 @@ class Plugin:
|
||||||
# Asyncio-compatible long-running code, executed in a task when the plugin is loaded
|
# Asyncio-compatible long-running code, executed in a task when the plugin is loaded
|
||||||
async def _main(self):
|
async def _main(self):
|
||||||
# startup
|
# startup
|
||||||
self.backend_proc = subprocess.Popen([PARENT_DIR + "/backend"])
|
self.backend_proc = subprocess.Popen([PARENT_DIR + "/bin/backend"])
|
||||||
while True:
|
while True:
|
||||||
await asyncio.sleep(1)
|
await asyncio.sleep(1)
|
||||||
|
|
14
package.json
14
package.json
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "decky-plugin-template",
|
"name": "Fantastic",
|
||||||
"version": "0.0.1",
|
"version": "0.3.1",
|
||||||
"description": "A template to quickly create decky plugins from scratch, based on TypeScript and webpack",
|
"description": "A template to quickly create decky plugins from scratch, based on TypeScript and webpack",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "shx rm -rf dist && rollup -c",
|
"build": "shx rm -rf dist && rollup -c",
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/SteamDeckHomebrew/decky-plugin-template.git"
|
"url": "git+https://github.com/NGnius/Fantastic.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"decky",
|
"decky",
|
||||||
|
@ -19,12 +19,12 @@
|
||||||
"steam-deck",
|
"steam-deck",
|
||||||
"deck"
|
"deck"
|
||||||
],
|
],
|
||||||
"author": "Jonas Dellinger <jonas@dellinger.dev>",
|
"author": "NGnius <ngniusness@gmail.com>",
|
||||||
"license": "GPL-2.0-or-later",
|
"license": "GPL-3.0",
|
||||||
"bugs": {
|
"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": {
|
"devDependencies": {
|
||||||
"@rollup/plugin-commonjs": "^21.1.0",
|
"@rollup/plugin-commonjs": "^21.1.0",
|
||||||
"@rollup/plugin-json": "^4.1.0",
|
"@rollup/plugin-json": "^4.1.0",
|
||||||
|
|
Loading…
Reference in a new issue