chore: use forked @todesktop/nan package as patch-package doesn't wor… #122
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-windows | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v3 | |
# - run: choco upgrade nodejs.install | |
# - run: choco install nodejs --version 20.0.0 | |
- run: choco upgrade chocolatey --version 1.4.0 --allow-downgrade | |
- name: install visualstudio tools | |
run: choco install python visualstudio2022-workload-vctools -y | |
continue-on-error: true | |
- run: npm install | |
- run: npm run prebuild | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
- name: upload binaries | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const zip = require('cross-zip') | |
const script = require('./scripts/upload-binaries.js'); | |
await script({ | |
github, | |
context, | |
core, | |
zip | |
}); |