Begin switch to Flatpak, because I can
Finally got it to actually have NodeJS available
This commit is contained in:
parent
ad48a7f528
commit
9257f94dbe
4 changed files with 37 additions and 0 deletions
22
.docker/io.github.TBMCPlugins.FlatMC.yml
Normal file
22
.docker/io.github.TBMCPlugins.FlatMC.yml
Normal 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
|
8
.docker/mcserver/configs/ops.json
Executable file
8
.docker/mcserver/configs/ops.json
Executable file
|
@ -0,0 +1,8 @@
|
|||
[
|
||||
{
|
||||
"uuid": "bd0c72e7-f5a6-49be-a407-ad69e72a3431",
|
||||
"name": "NorbiPeti",
|
||||
"level": 4,
|
||||
"bypassesPlayerLimit": false
|
||||
}
|
||||
]
|
5
.docker/runner/start.sh
Normal file
5
.docker/runner/start.sh
Normal 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
2
.gitignore
vendored
|
@ -5,3 +5,5 @@ node_modules
|
|||
.docker/mcserver/server*
|
||||
.docker/mcserver/*.jar
|
||||
.docker/mcserver/plugins
|
||||
.docker/.flatpak-builder
|
||||
.docker/build
|
||||
|
|
Loading…
Reference in a new issue