Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -503,5 +503,13 @@ jobs:
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_TAG: ${{ needs.release.outputs.package-version }}
run: |
gh release upload "${{ needs.release.outputs.package-version }}" ./electron-app-example/release/*.{dmg,zip,exe,appx,AppImage,snap,deb,tar.gz}
shopt -s nullglob

for file in ./electron-app-example/release/*.{dmg,zip,exe,appx,AppImage,snap,deb,tar.gz}; do
echo "Adding $file to release"
gh release upload "$RELEASE_TAG" "$file"
done

shopt -u nullglob
12 changes: 12 additions & 0 deletions templates/electron-typescript-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
"version": "0.0.0",
"main": "./dist-electron/index.js",
"type": "module",
"homepage": "https://github.com/withcatai/node-llama-cpp",
"author": {
"name": "Author name",
"email": "[email protected]"
},
"scripts": {
"_postinstall": "npm run models:pull",
"models:pull": "node-llama-cpp pull --dir ./models \"{{modelUrl|escape|escape}}\"",
Expand Down Expand Up @@ -43,5 +48,12 @@
"vite-plugin-electron": "^0.28.7",
"vite-plugin-electron-renderer": "^0.14.5",
"zx": "^8.1.2"
},
"overrides": {
"electron-builder": {
"read-config-file": {
"config-file-ts": ">=0.2.8-rc1"
}
}
}
}