Skip to content

Commit 7a3003e

Browse files
committed
Fix release packaging workflow
1 parent 8f843f3 commit 7a3003e

4 files changed

Lines changed: 31 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- main
1010

11+
env:
12+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
13+
1114
jobs:
1215
build:
1316
name: Build
@@ -20,7 +23,7 @@ jobs:
2023
- name: Setup Node.js
2124
uses: actions/setup-node@v4
2225
with:
23-
node-version: 20
26+
node-version: 22
2427
cache: npm
2528

2629
- name: Install dependencies

.github/workflows/release.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
permissions:
99
contents: write
1010

11+
env:
12+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
13+
1114
jobs:
1215
package:
1316
name: Package ${{ matrix.platform }}
@@ -18,7 +21,7 @@ jobs:
1821
matrix:
1922
include:
2023
- platform: windows
21-
os: windows-latest
24+
os: windows-2022
2225
command: npm run dist:win
2326
assets: |
2427
release/*.exe
@@ -43,15 +46,25 @@ jobs:
4346
- name: Setup Node.js
4447
uses: actions/setup-node@v4
4548
with:
46-
node-version: 20
49+
node-version: 22
4750
cache: npm
4851

4952
- name: Install dependencies
5053
run: npm ci
5154

55+
- name: Install Linux packaging dependencies
56+
if: matrix.platform == 'linux'
57+
run: |
58+
sudo apt-get update
59+
sudo apt-get install -y libfuse2 || sudo apt-get install -y libfuse2t64
60+
5261
- name: Build package
5362
run: ${{ matrix.command }}
5463

64+
- name: List release artifacts
65+
shell: bash
66+
run: ls -la release
67+
5568
- name: Upload package artifacts
5669
uses: actions/upload-artifact@v4
5770
with:

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
22
"name": "paper2corecode",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Desktop app to analyze papers and extract core code with DeepSeek",
5-
"author": "lemonmindyes",
5+
"author": {
6+
"name": "lemonmindyes",
7+
"email": "lemonmindyes@users.noreply.github.com"
8+
},
69
"license": "Apache-2.0",
710
"repository": {
811
"type": "git",
@@ -16,10 +19,10 @@
1619
"build:renderer": "vite build",
1720
"build:main": "tsc -p tsconfig.main.json && tsc -p tsconfig.preload.json",
1821
"build": "npm run build:renderer && npm run build:main",
19-
"dist": "npm run build && electron-builder",
20-
"dist:win": "npm run build && electron-builder --win",
21-
"dist:mac": "npm run build && electron-builder --mac",
22-
"dist:linux": "npm run build && electron-builder --linux"
22+
"dist": "npm run build && electron-builder --publish never",
23+
"dist:win": "npm run build && electron-builder --win --publish never",
24+
"dist:mac": "npm run build && electron-builder --mac --publish never",
25+
"dist:linux": "npm run build && electron-builder --linux --publish never"
2326
},
2427
"dependencies": {
2528
"katex": "^0.16.45",
@@ -72,6 +75,7 @@
7275
},
7376
"linux": {
7477
"artifactName": "Paper2CoreCode-${version}-linux-${arch}.${ext}",
78+
"maintainer": "lemonmindyes <lemonmindyes@users.noreply.github.com>",
7579
"target": [
7680
"AppImage",
7781
"deb"

0 commit comments

Comments
 (0)