ci: manually patch extract-files package for windows build
This commit is contained in:
parent
095f8cec7a
commit
8259f0dee6
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -192,7 +192,7 @@ jobs:
|
|||||||
- name: Setup Node.js environment
|
- name: Setup Node.js environment
|
||||||
uses: actions/setup-node@v3.6.0
|
uses: actions/setup-node@v3.6.0
|
||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 18.x
|
||||||
|
|
||||||
- name: Download a Build Artifact
|
- name: Download a Build Artifact
|
||||||
uses: actions/download-artifact@v3.0.2
|
uses: actions/download-artifact@v3.0.2
|
||||||
@ -203,7 +203,9 @@ jobs:
|
|||||||
- name: Extract Build
|
- name: Extract Build
|
||||||
run: |
|
run: |
|
||||||
mkdir -p win
|
mkdir -p win
|
||||||
tar -xzf $env:GITHUB_WORKSPACE\drop\wiki-js.tar.gz -C $env:GITHUB_WORKSPACE\win --exclude=node_modules
|
tar -xzf $env:GITHUB_WORKSPACE\drop\wiki-js.tar.gz -C $env:GITHUB_WORKSPACE\win
|
||||||
|
copy win\node_modules\extract-files\package.json patch-extractfile.json
|
||||||
|
rmdir /S /Q win\node_modules
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
@ -211,6 +213,10 @@ jobs:
|
|||||||
yarn patch-package
|
yarn patch-package
|
||||||
working-directory: win
|
working-directory: win
|
||||||
|
|
||||||
|
- name: Fix patched packages
|
||||||
|
run: |
|
||||||
|
copy /y patch-extractfile.json win\node_modules\extract-files\package.json
|
||||||
|
|
||||||
- name: Create Bundle
|
- name: Create Bundle
|
||||||
run: tar -czf wiki-js-windows.tar.gz -C $env:GITHUB_WORKSPACE\win .
|
run: tar -czf wiki-js-windows.tar.gz -C $env:GITHUB_WORKSPACE\win .
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user