Begin switch to Flatpak, because I can

Finally got it to actually have NodeJS available
This commit is contained in:
Norbi Peti 2022-08-25 03:08:16 +02:00
parent ad48a7f528
commit 9257f94dbe
No known key found for this signature in database
GPG key ID: DBA4C4549A927E56
4 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,22 @@
app-id: io.github.TBMCPlugins.FlatMC
runtime: org.freedesktop.Sdk # Has to be SDK instead of Platform because we need the NodeJS SDK extension
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
command: start.sh
modules:
- name: HelloTeszt
buildsystem: simple
build-commands:
- npm install --offline
- npm run build
- install -d dist /app/bin/dist
- install -D start.sh /app/bin/start.sh
sources:
- type: dir
path: ../src
- type: file
path: runner/start.sh
sdk-extensions:
- org.freedesktop.Sdk.Extension.node16
build-options:
append-path: /usr/lib/sdk/node16/bin

View file

@ -0,0 +1,8 @@
[
{
"uuid": "bd0c72e7-f5a6-49be-a407-ad69e72a3431",
"name": "NorbiPeti",
"level": 4,
"bypassesPlayerLimit": false
}
]

5
.docker/runner/start.sh Normal file
View file

@ -0,0 +1,5 @@
#!/bin/sh
echo "Starting runner"
export PATH=$PATH:/usr/lib/sdk/node16/bin
npm rum start
echo "Exiting runner"

2
.gitignore vendored
View file

@ -5,3 +5,5 @@ node_modules
.docker/mcserver/server*
.docker/mcserver/*.jar
.docker/mcserver/plugins
.docker/.flatpak-builder
.docker/build