Skip to content

Commit

Permalink
fix: Windows icudtl.data version and path
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Aug 5, 2021
1 parent f4f2499 commit 5c81eb7
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 50 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,9 @@ jobs:
- name: Move artifacts
run: pnpm artifacts

- name: Download ICU for Windows
run: node ./scripts/release-skia-binary.js --download-icu

- name: List packages
run: ls -R ./npm
shell: bash
Expand Down
5 changes: 0 additions & 5 deletions npm/icudtl/README.md

This file was deleted.

32 changes: 0 additions & 32 deletions npm/icudtl/package.json

This file was deleted.

11 changes: 0 additions & 11 deletions npm/icudtl/postinstall.js

This file was deleted.

2 changes: 1 addition & 1 deletion npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"os": ["win32"],
"cpu": ["x64"],
"main": "skia.win32-x64-msvc.node",
"files": ["skia.win32-x64-msvc.node"],
"files": ["skia.win32-x64-msvc.node", "icudtl.dat"],
"description": "Canvas for Node.js with skia backend",
"keywords": [
"napi-rs",
Expand Down
2 changes: 1 addition & 1 deletion scripts/release-skia-binary.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async function download() {
}
if (PLATFORM_NAME === 'win32') {
await downloadIcu()
await fs.copyFile(join(__dirname, '..', ICU_DAT), join(__dirname, '..', 'npm', 'icudtl', ICU_DAT))
await fs.copyFile(join(__dirname, '..', ICU_DAT), join(__dirname, '..', 'npm', 'win32-x64-msvc', ICU_DAT))
}
}

Expand Down

0 comments on commit 5c81eb7

Please sign in to comment.