mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
Prepare for fetching slint npm binary packages from the @slint-ui/slint-ui-binary-* scope
That way we keep things clean on the top-level.
This commit is contained in:
parent
8c1c87a600
commit
78b6c8e02c
4 changed files with 19 additions and 2 deletions
2
.github/workflows/upgrade_version.yaml
vendored
2
.github/workflows/upgrade_version.yaml
vendored
|
@ -33,6 +33,8 @@ jobs:
|
|||
|
||||
# Version in package.json files
|
||||
git ls-files | grep package.json | xargs sed -i 's/"version": ".*"/"version": "${{ github.event.inputs.new_version }}"/'
|
||||
# Update version in Node.js binary package config
|
||||
sed -i 's/"version": ".*"/"version": "${{ github.event.inputs.new_version }}"/' api/node/binaries.json
|
||||
|
||||
# VersionCheck
|
||||
sed -i "s/VersionCheck_[0-9]*_[0-9]*_[0-9]*;/VersionCheck_`echo ${{ github.event.inputs.new_version }} | sed "s/\([0-9]*\)\.\([0-9]*\).\([0-9]*\)/\1/"`_`echo ${{ github.event.inputs.new_version }} | sed "s/\([0-9]*\)\.\([0-9]*\).\([0-9]*\)/\2/"`_`echo ${{ github.event.inputs.new_version }} | sed "s/\([0-9]*\)\.\([0-9]*\).\([0-9]*\)/\3/"`;/" api/rs/slint/lib.rs
|
||||
|
|
1
api/node/.gitignore
vendored
1
api/node/.gitignore
vendored
|
@ -2,3 +2,4 @@ rust-module.cjs
|
|||
rust-module.d.ts
|
||||
index.js
|
||||
docs/
|
||||
npm/
|
||||
|
|
14
api/node/binaries.json
Normal file
14
api/node/binaries.json
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"name": "@slint-ui/slint-ui-binary",
|
||||
"version": "1.4.0",
|
||||
"binaryName": "slint-ui",
|
||||
"package": "@slint-ui/slint-ui-binary",
|
||||
"napi": {
|
||||
"triples": {
|
||||
"defaults": false,
|
||||
"additional": [
|
||||
"x86_64-unknown-linux-gnu"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -35,8 +35,8 @@
|
|||
"scripts": {
|
||||
"artifacts": "napi artifacts",
|
||||
"compile": "tsc",
|
||||
"build": "napi build --platform --release --js rust-module.cjs --dts rust-module.d.ts",
|
||||
"build:debug": "napi build --platform --js rust-module.cjs --dts rust-module.d.ts && npm run compile",
|
||||
"build": "napi build --platform --release --js rust-module.cjs --dts rust-module.d.ts -c binaries.json",
|
||||
"build:debug": "napi build --platform --js rust-module.cjs --dts rust-module.d.ts -c binaries.json && npm run compile",
|
||||
"install": "node build-on-demand.mjs",
|
||||
"docs": "npm run build && typedoc --hideGenerator --treatWarningsAsErrors --readme cover.md index.ts",
|
||||
"test": "ava"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue