Skip to content

Commit 413880b

Browse files
committed
make node version consistent and fix appimage build
1 parent 0f81660 commit 413880b

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Node.js environment
1919
uses: actions/[email protected]
2020
with:
21-
node-version: 23.x
21+
node-version: 22.x
2222

2323
- name: Install dependencies
2424
run: |

build.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ fi
88
bash setversion.sh
99

1010
rm -Rf build || true
11-
rm -Rf dist || true
1211
mkdir -p deploy
1312
mkdir -p build/AppDir
1413

14+
npm i
1515
npm run build
1616

1717

18-
wget https://nodejs.org/dist/v18.13.0/node-v18.13.0-linux-x64.tar.xz -O build/AppDir/node.tar.xz
18+
wget https://nodejs.org/dist/v22.11.0/node-v22.11.0-linux-x64.tar.xz -O build/AppDir/node.tar.xz
1919
tar -xf build/AppDir/node.tar.xz -C build/AppDir
2020
rm build/AppDir/node.tar.xz
2121
mv build/AppDir/node-*-linux-x64 build/AppDir/node
2222

2323

24-
cp dist/*.js build/AppDir
24+
cp build/dist/*.js build/AppDir
2525
cp *.json build/AppDir
2626
cd build/AppDir
27-
npm i --prefix=.
27+
npm i --prefix=. --production
2828

2929
cd ..
3030

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:23
1+
FROM node:22
22

33
RUN mkdir -p /app
44
WORKDIR /app

setversion.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44
if [ "$VERSION" = "" ] || [ "$VERSION" = "SNAPSHOT" ] || [ "$VERSION" = "snapshot" ];
55
then
6-
VERSION=0.0.0-snapshot
6+
VERSION=2.0-snapshot
77
fi
88
jq ".version=\"$VERSION\"" package.json > tmp_package.json
99
mv -f tmp_package.json package.json

0 commit comments

Comments
 (0)