Skip to content

Commit

Permalink
add napi versions and get artifacts for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Dexus committed Dec 22, 2024
1 parent d9b4295 commit df75b0f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,8 @@ jobs:
- name: Bump Version
id: bump_version
run: |
# Extract current version
CURRENT_VERSION=$(node -p "require('./package.json').version")
echo "Current version: $CURRENT_VERSION"
# Increment version (patch bump by default, you can modify to 'minor' or 'major')
NEW_VERSION=$(npx semver $CURRENT_VERSION -i patch)
NEW_VERSION=$(date -u +"%Y%m.%d.%H%M%S")
echo "New version: $NEW_VERSION"
# Update package.json with new version
npm version $NEW_VERSION --no-git-tag-version
# Output new version for use in subsequent steps
Expand All @@ -100,6 +93,13 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Download All Artifacts
uses: actions/download-artifact@v4
with:
path: prebuilds
pattern: release-*
merge-multiple: true

- name: Create GitHub Release
uses: actions/create-release@v1
with:
Expand Down
4 changes: 3 additions & 1 deletion build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ npm install
# Führe prebuildify mit den gewünschten Optionen aus
# npx prebuildify -t "$NODE_VERSION" -t "electron@$ELECTRON_VERSION" --napi=false --tag-uv --tag-armv --tag-libc --strip --arch ia32
npx prebuildify -t "$NODE_VERSION" -t "electron@$ELECTRON_VERSION" --napi=false --tag-uv --tag-armv --tag-libc --strip --arch x64
npx prebuildify -t "$NODE_VERSION" -t "electron@$ELECTRON_VERSION" --napi=false --tag-uv --tag-armv --tag-libc --strip --arch arm64
npx prebuildify -t "$NODE_VERSION" -t "electron@$ELECTRON_VERSION" --napi=true --tag-uv --tag-armv --tag-libc --strip --arch x64
npx prebuildify -t "$NODE_VERSION" -t "electron@$ELECTRON_VERSION" --napi=false --tag-uv --tag-armv --tag-libc --strip --arch arm64
npx prebuildify -t "$NODE_VERSION" -t "electron@$ELECTRON_VERSION" --napi=true --tag-uv --tag-armv --tag-libc --strip --arch arm64
4 changes: 3 additions & 1 deletion build-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ npm install
# Führe prebuildify mit den gewünschten Optionen aus
# npx prebuildify -t "$NODE_VERSION" -t "electron@$ELECTRON_VERSION" --napi=false --tag-uv --tag-armv --tag-libc --strip --arch ia32
npx prebuildify -t "$NODE_VERSION" -t "electron@$ELECTRON_VERSION" --napi=false --tag-uv --tag-armv --tag-libc --strip --arch x64
npx prebuildify -t "$NODE_VERSION" -t "electron@$ELECTRON_VERSION" --napi=false --tag-uv --tag-armv --tag-libc --strip --arch arm64
npx prebuildify -t "$NODE_VERSION" -t "electron@$ELECTRON_VERSION" --napi=true --tag-uv --tag-armv --tag-libc --strip --arch x64
npx prebuildify -t "$NODE_VERSION" -t "electron@$ELECTRON_VERSION" --napi=false --tag-uv --tag-armv --tag-libc --strip --arch arm64
npx prebuildify -t "$NODE_VERSION" -t "electron@$ELECTRON_VERSION" --napi=true --tag-uv --tag-armv --tag-libc --strip --arch arm64

0 comments on commit df75b0f

Please sign in to comment.