Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1a66ccecee | ||
|
|
82c9c33a8e | ||
|
|
04bffc72ed |
1 changed files with 28 additions and 0 deletions
28
container.yaml
Normal file
28
container.yaml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
flatpak:
|
||||
id: org.fedoraproject.Sdk.Extension.node24
|
||||
branch: f44
|
||||
build-extension: true
|
||||
runtime: org.fedoraproject.Sdk
|
||||
runtime-version: f44
|
||||
sdk: org.fedoraproject.Sdk
|
||||
name: f44/nodejs24
|
||||
component: nodejs24-flatpak
|
||||
packages:
|
||||
- nodejs24
|
||||
- nodejs24-bin
|
||||
- nodejs24-devel
|
||||
- nodejs24-npm
|
||||
- nodejs24-npm-bin
|
||||
- yarnpkg
|
||||
- nodejs24-flatpak-config
|
||||
# for cleanup-commands (part of runtime)
|
||||
- coreutils-single
|
||||
cleanup-commands: |
|
||||
mkdir -p /app/bin /app/include /app/lib/ /app/share/licenses
|
||||
mv /usr/bin/{node*,npm*,npx,yarn,yarnpkg} /app/bin/
|
||||
mv /usr/include/node /app/include/
|
||||
mv /usr/lib64/lib{node,uv}* /app/lib/
|
||||
mv /usr/lib/node_modules{,_24} /app/lib/
|
||||
grep -rl /usr/bin/node /app/lib/node_modules{,_24}/ | xargs sed -i -e '1s|/usr/bin/node|/usr/bin/env node|'
|
||||
echo -e "#!/bin/sh\ncp -r /usr/lib/sdk/node24 /app/node" > /app/install-sdk.sh
|
||||
chmod +x /app/install-sdk.sh
|
||||
Loading…
Add table
Add a link
Reference in a new issue