Skip to content

Commit 73cabcd

Browse files
authored
fix: Electron example build (#230)
1 parent a5f3596 commit 73cabcd

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,5 +503,13 @@ jobs:
503503
shell: bash
504504
env:
505505
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
506+
RELEASE_TAG: ${{ needs.release.outputs.package-version }}
506507
run: |
507-
gh release upload "${{ needs.release.outputs.package-version }}" ./electron-app-example/release/*.{dmg,zip,exe,appx,AppImage,snap,deb,tar.gz}
508+
shopt -s nullglob
509+
510+
for file in ./electron-app-example/release/*.{dmg,zip,exe,appx,AppImage,snap,deb,tar.gz}; do
511+
echo "Adding $file to release"
512+
gh release upload "$RELEASE_TAG" "$file"
513+
done
514+
515+
shopt -u nullglob

templates/electron-typescript-react/package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
"version": "0.0.0",
55
"main": "./dist-electron/index.js",
66
"type": "module",
7+
"homepage": "https://github.com/withcatai/node-llama-cpp",
8+
"author": {
9+
"name": "Author name",
10+
"email": "[email protected]"
11+
},
712
"scripts": {
813
"_postinstall": "npm run models:pull",
914
"models:pull": "node-llama-cpp pull --dir ./models \"{{modelUrl|escape|escape}}\"",
@@ -43,5 +48,12 @@
4348
"vite-plugin-electron": "^0.28.7",
4449
"vite-plugin-electron-renderer": "^0.14.5",
4550
"zx": "^8.1.2"
51+
},
52+
"overrides": {
53+
"electron-builder": {
54+
"read-config-file": {
55+
"config-file-ts": ">=0.2.8-rc1"
56+
}
57+
}
4658
}
4759
}

0 commit comments

Comments
 (0)