diff --git a/.changeset/fuzzy-windows-accept.md b/.changeset/fuzzy-windows-accept.md new file mode 100644 index 0000000..17e7231 --- /dev/null +++ b/.changeset/fuzzy-windows-accept.md @@ -0,0 +1,5 @@ +--- +'archons': patch +--- + +Fix napi package failed to release diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2b032d1..78e7523 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,7 +1,7 @@ name: Build and Test env: DEBUG: napi:* - APP_NAME: archons + APP_NAME: archons-napi MACOSX_DEPLOYMENT_TARGET: '10.13' CARGO_INCREMENTAL: '1' permissions: diff --git a/index.js b/index.js index e1ae0ce..e59d0f4 100644 --- a/index.js +++ b/index.js @@ -32,10 +32,10 @@ switch (platform) { case 'android': switch (arch) { case 'arm64': - localFileExisted = existsSync(join(__dirname, 'archons.android-arm64.node')) + localFileExisted = existsSync(join(__dirname, 'archons-napi.android-arm64.node')) try { if (localFileExisted) { - nativeBinding = require('./archons.android-arm64.node') + nativeBinding = require('./archons-napi.android-arm64.node') } else { nativeBinding = require('archons-android-arm64') } @@ -44,10 +44,10 @@ switch (platform) { } break case 'arm': - localFileExisted = existsSync(join(__dirname, 'archons.android-arm-eabi.node')) + localFileExisted = existsSync(join(__dirname, 'archons-napi.android-arm-eabi.node')) try { if (localFileExisted) { - nativeBinding = require('./archons.android-arm-eabi.node') + nativeBinding = require('./archons-napi.android-arm-eabi.node') } else { nativeBinding = require('archons-android-arm-eabi') } @@ -63,11 +63,11 @@ switch (platform) { switch (arch) { case 'x64': localFileExisted = existsSync( - join(__dirname, 'archons.win32-x64-msvc.node') + join(__dirname, 'archons-napi.win32-x64-msvc.node') ) try { if (localFileExisted) { - nativeBinding = require('./archons.win32-x64-msvc.node') + nativeBinding = require('./archons-napi.win32-x64-msvc.node') } else { nativeBinding = require('archons-win32-x64-msvc') } @@ -77,11 +77,11 @@ switch (platform) { break case 'ia32': localFileExisted = existsSync( - join(__dirname, 'archons.win32-ia32-msvc.node') + join(__dirname, 'archons-napi.win32-ia32-msvc.node') ) try { if (localFileExisted) { - nativeBinding = require('./archons.win32-ia32-msvc.node') + nativeBinding = require('./archons-napi.win32-ia32-msvc.node') } else { nativeBinding = require('archons-win32-ia32-msvc') } @@ -91,11 +91,11 @@ switch (platform) { break case 'arm64': localFileExisted = existsSync( - join(__dirname, 'archons.win32-arm64-msvc.node') + join(__dirname, 'archons-napi.win32-arm64-msvc.node') ) try { if (localFileExisted) { - nativeBinding = require('./archons.win32-arm64-msvc.node') + nativeBinding = require('./archons-napi.win32-arm64-msvc.node') } else { nativeBinding = require('archons-win32-arm64-msvc') } @@ -108,10 +108,10 @@ switch (platform) { } break case 'darwin': - localFileExisted = existsSync(join(__dirname, 'archons.darwin-universal.node')) + localFileExisted = existsSync(join(__dirname, 'archons-napi.darwin-universal.node')) try { if (localFileExisted) { - nativeBinding = require('./archons.darwin-universal.node') + nativeBinding = require('./archons-napi.darwin-universal.node') } else { nativeBinding = require('archons-darwin-universal') } @@ -119,10 +119,10 @@ switch (platform) { } catch {} switch (arch) { case 'x64': - localFileExisted = existsSync(join(__dirname, 'archons.darwin-x64.node')) + localFileExisted = existsSync(join(__dirname, 'archons-napi.darwin-x64.node')) try { if (localFileExisted) { - nativeBinding = require('./archons.darwin-x64.node') + nativeBinding = require('./archons-napi.darwin-x64.node') } else { nativeBinding = require('archons-darwin-x64') } @@ -132,11 +132,11 @@ switch (platform) { break case 'arm64': localFileExisted = existsSync( - join(__dirname, 'archons.darwin-arm64.node') + join(__dirname, 'archons-napi.darwin-arm64.node') ) try { if (localFileExisted) { - nativeBinding = require('./archons.darwin-arm64.node') + nativeBinding = require('./archons-napi.darwin-arm64.node') } else { nativeBinding = require('archons-darwin-arm64') } @@ -152,10 +152,10 @@ switch (platform) { if (arch !== 'x64') { throw new Error(`Unsupported architecture on FreeBSD: ${arch}`) } - localFileExisted = existsSync(join(__dirname, 'archons.freebsd-x64.node')) + localFileExisted = existsSync(join(__dirname, 'archons-napi.freebsd-x64.node')) try { if (localFileExisted) { - nativeBinding = require('./archons.freebsd-x64.node') + nativeBinding = require('./archons-napi.freebsd-x64.node') } else { nativeBinding = require('archons-freebsd-x64') } @@ -168,11 +168,11 @@ switch (platform) { case 'x64': if (isMusl()) { localFileExisted = existsSync( - join(__dirname, 'archons.linux-x64-musl.node') + join(__dirname, 'archons-napi.linux-x64-musl.node') ) try { if (localFileExisted) { - nativeBinding = require('./archons.linux-x64-musl.node') + nativeBinding = require('./archons-napi.linux-x64-musl.node') } else { nativeBinding = require('archons-linux-x64-musl') } @@ -181,11 +181,11 @@ switch (platform) { } } else { localFileExisted = existsSync( - join(__dirname, 'archons.linux-x64-gnu.node') + join(__dirname, 'archons-napi.linux-x64-gnu.node') ) try { if (localFileExisted) { - nativeBinding = require('./archons.linux-x64-gnu.node') + nativeBinding = require('./archons-napi.linux-x64-gnu.node') } else { nativeBinding = require('archons-linux-x64-gnu') } @@ -197,11 +197,11 @@ switch (platform) { case 'arm64': if (isMusl()) { localFileExisted = existsSync( - join(__dirname, 'archons.linux-arm64-musl.node') + join(__dirname, 'archons-napi.linux-arm64-musl.node') ) try { if (localFileExisted) { - nativeBinding = require('./archons.linux-arm64-musl.node') + nativeBinding = require('./archons-napi.linux-arm64-musl.node') } else { nativeBinding = require('archons-linux-arm64-musl') } @@ -210,11 +210,11 @@ switch (platform) { } } else { localFileExisted = existsSync( - join(__dirname, 'archons.linux-arm64-gnu.node') + join(__dirname, 'archons-napi.linux-arm64-gnu.node') ) try { if (localFileExisted) { - nativeBinding = require('./archons.linux-arm64-gnu.node') + nativeBinding = require('./archons-napi.linux-arm64-gnu.node') } else { nativeBinding = require('archons-linux-arm64-gnu') } @@ -226,11 +226,11 @@ switch (platform) { case 'arm': if (isMusl()) { localFileExisted = existsSync( - join(__dirname, 'archons.linux-arm-musleabihf.node') + join(__dirname, 'archons-napi.linux-arm-musleabihf.node') ) try { if (localFileExisted) { - nativeBinding = require('./archons.linux-arm-musleabihf.node') + nativeBinding = require('./archons-napi.linux-arm-musleabihf.node') } else { nativeBinding = require('archons-linux-arm-musleabihf') } @@ -239,11 +239,11 @@ switch (platform) { } } else { localFileExisted = existsSync( - join(__dirname, 'archons.linux-arm-gnueabihf.node') + join(__dirname, 'archons-napi.linux-arm-gnueabihf.node') ) try { if (localFileExisted) { - nativeBinding = require('./archons.linux-arm-gnueabihf.node') + nativeBinding = require('./archons-napi.linux-arm-gnueabihf.node') } else { nativeBinding = require('archons-linux-arm-gnueabihf') } @@ -255,11 +255,11 @@ switch (platform) { case 'riscv64': if (isMusl()) { localFileExisted = existsSync( - join(__dirname, 'archons.linux-riscv64-musl.node') + join(__dirname, 'archons-napi.linux-riscv64-musl.node') ) try { if (localFileExisted) { - nativeBinding = require('./archons.linux-riscv64-musl.node') + nativeBinding = require('./archons-napi.linux-riscv64-musl.node') } else { nativeBinding = require('archons-linux-riscv64-musl') } @@ -268,11 +268,11 @@ switch (platform) { } } else { localFileExisted = existsSync( - join(__dirname, 'archons.linux-riscv64-gnu.node') + join(__dirname, 'archons-napi.linux-riscv64-gnu.node') ) try { if (localFileExisted) { - nativeBinding = require('./archons.linux-riscv64-gnu.node') + nativeBinding = require('./archons-napi.linux-riscv64-gnu.node') } else { nativeBinding = require('archons-linux-riscv64-gnu') } @@ -283,11 +283,11 @@ switch (platform) { break case 's390x': localFileExisted = existsSync( - join(__dirname, 'archons.linux-s390x-gnu.node') + join(__dirname, 'archons-napi.linux-s390x-gnu.node') ) try { if (localFileExisted) { - nativeBinding = require('./archons.linux-s390x-gnu.node') + nativeBinding = require('./archons-napi.linux-s390x-gnu.node') } else { nativeBinding = require('archons-linux-s390x-gnu') } diff --git a/npm/android-arm-eabi/README.md b/npm/android-arm-eabi/README.md index 9162976..c39e5d8 100644 --- a/npm/android-arm-eabi/README.md +++ b/npm/android-arm-eabi/README.md @@ -1,3 +1,3 @@ -# `archons-android-arm-eabi` +# `archons-napi-android-arm-eabi` -This is the **armv7-linux-androideabi** binary for `archons` +This is the **armv7-linux-androideabi** binary for `archons-napi` diff --git a/npm/android-arm-eabi/package.json b/npm/android-arm-eabi/package.json index 1f6d5a3..68976af 100644 --- a/npm/android-arm-eabi/package.json +++ b/npm/android-arm-eabi/package.json @@ -1,6 +1,6 @@ { - "name": "archons-android-arm-eabi", - "version": "0.1.1", + "name": "archons-napi-android-arm-eabi", + "version": "0.1.2", "os": [ "android" ], diff --git a/npm/android-arm64/README.md b/npm/android-arm64/README.md index 317ff1d..a0c1511 100644 --- a/npm/android-arm64/README.md +++ b/npm/android-arm64/README.md @@ -1,3 +1,3 @@ -# `archons-android-arm64` +# `archons-napi-android-arm64` -This is the **aarch64-linux-android** binary for `archons` +This is the **aarch64-linux-android** binary for `archons-napi` diff --git a/npm/android-arm64/package.json b/npm/android-arm64/package.json index 805a690..19f57fa 100644 --- a/npm/android-arm64/package.json +++ b/npm/android-arm64/package.json @@ -1,6 +1,6 @@ { - "name": "archons-android-arm64", - "version": "0.1.1", + "name": "archons-napi-android-arm64", + "version": "0.1.2", "os": [ "android" ], diff --git a/npm/darwin-arm64/README.md b/npm/darwin-arm64/README.md index d9e5e97..8bbffc0 100644 --- a/npm/darwin-arm64/README.md +++ b/npm/darwin-arm64/README.md @@ -1,3 +1,3 @@ -# `archons-darwin-arm64` +# `archons-napi-darwin-arm64` -This is the **aarch64-apple-darwin** binary for `archons` +This is the **aarch64-apple-darwin** binary for `archons-napi` diff --git a/npm/darwin-arm64/package.json b/npm/darwin-arm64/package.json index 94a5e55..300fa26 100644 --- a/npm/darwin-arm64/package.json +++ b/npm/darwin-arm64/package.json @@ -1,6 +1,6 @@ { - "name": "archons-darwin-arm64", - "version": "0.1.1", + "name": "archons-napi-darwin-arm64", + "version": "0.1.2", "os": [ "darwin" ], diff --git a/npm/darwin-x64/README.md b/npm/darwin-x64/README.md index fc04aa1..845cb6e 100644 --- a/npm/darwin-x64/README.md +++ b/npm/darwin-x64/README.md @@ -1,3 +1,3 @@ -# `archons-darwin-x64` +# `archons-napi-darwin-x64` -This is the **x86_64-apple-darwin** binary for `archons` +This is the **x86_64-apple-darwin** binary for `archons-napi` diff --git a/npm/darwin-x64/package.json b/npm/darwin-x64/package.json index 98f36cc..ef255a0 100644 --- a/npm/darwin-x64/package.json +++ b/npm/darwin-x64/package.json @@ -1,6 +1,6 @@ { - "name": "archons-darwin-x64", - "version": "0.1.1", + "name": "archons-napi-darwin-x64", + "version": "0.1.2", "os": [ "darwin" ], diff --git a/npm/freebsd-x64/README.md b/npm/freebsd-x64/README.md index e9afef9..06b7f7c 100644 --- a/npm/freebsd-x64/README.md +++ b/npm/freebsd-x64/README.md @@ -1,3 +1,3 @@ -# `archons-freebsd-x64` +# `archons-napi-freebsd-x64` -This is the **x86_64-unknown-freebsd** binary for `archons` +This is the **x86_64-unknown-freebsd** binary for `archons-napi` diff --git a/npm/freebsd-x64/package.json b/npm/freebsd-x64/package.json index 7f9eff2..cf3f364 100644 --- a/npm/freebsd-x64/package.json +++ b/npm/freebsd-x64/package.json @@ -1,6 +1,6 @@ { - "name": "archons-freebsd-x64", - "version": "0.1.1", + "name": "archons-napi-freebsd-x64", + "version": "0.1.2", "os": [ "freebsd" ], diff --git a/npm/linux-arm-gnueabihf/README.md b/npm/linux-arm-gnueabihf/README.md index 722a3cf..0b1b8b0 100644 --- a/npm/linux-arm-gnueabihf/README.md +++ b/npm/linux-arm-gnueabihf/README.md @@ -1,3 +1,3 @@ -# `archons-linux-arm-gnueabihf` +# `archons-napi-linux-arm-gnueabihf` -This is the **armv7-unknown-linux-gnueabihf** binary for `archons` +This is the **armv7-unknown-linux-gnueabihf** binary for `archons-napi` diff --git a/npm/linux-arm-gnueabihf/package.json b/npm/linux-arm-gnueabihf/package.json index 9d98370..aa0e5f4 100644 --- a/npm/linux-arm-gnueabihf/package.json +++ b/npm/linux-arm-gnueabihf/package.json @@ -1,6 +1,6 @@ { - "name": "archons-linux-arm-gnueabihf", - "version": "0.1.1", + "name": "archons-napi-linux-arm-gnueabihf", + "version": "0.1.2", "os": [ "linux" ], diff --git a/npm/linux-arm64-gnu/README.md b/npm/linux-arm64-gnu/README.md index 797b744..978884e 100644 --- a/npm/linux-arm64-gnu/README.md +++ b/npm/linux-arm64-gnu/README.md @@ -1,3 +1,3 @@ -# `archons-linux-arm64-gnu` +# `archons-napi-linux-arm64-gnu` -This is the **aarch64-unknown-linux-gnu** binary for `archons` +This is the **aarch64-unknown-linux-gnu** binary for `archons-napi` diff --git a/npm/linux-arm64-gnu/package.json b/npm/linux-arm64-gnu/package.json index 2c4389a..24ab3d3 100644 --- a/npm/linux-arm64-gnu/package.json +++ b/npm/linux-arm64-gnu/package.json @@ -1,6 +1,6 @@ { - "name": "archons-linux-arm64-gnu", - "version": "0.1.1", + "name": "archons-napi-linux-arm64-gnu", + "version": "0.1.2", "os": [ "linux" ], diff --git a/npm/linux-arm64-musl/README.md b/npm/linux-arm64-musl/README.md index 5794955..85177a0 100644 --- a/npm/linux-arm64-musl/README.md +++ b/npm/linux-arm64-musl/README.md @@ -1,3 +1,3 @@ -# `archons-linux-arm64-musl` +# `archons-napi-linux-arm64-musl` -This is the **aarch64-unknown-linux-musl** binary for `archons` +This is the **aarch64-unknown-linux-musl** binary for `archons-napi` diff --git a/npm/linux-arm64-musl/package.json b/npm/linux-arm64-musl/package.json index 3b455b3..4d1d393 100644 --- a/npm/linux-arm64-musl/package.json +++ b/npm/linux-arm64-musl/package.json @@ -1,6 +1,6 @@ { - "name": "archons-linux-arm64-musl", - "version": "0.1.1", + "name": "archons-napi-linux-arm64-musl", + "version": "0.1.2", "os": [ "linux" ], diff --git a/npm/linux-x64-gnu/README.md b/npm/linux-x64-gnu/README.md index 7b93958..8adcecb 100644 --- a/npm/linux-x64-gnu/README.md +++ b/npm/linux-x64-gnu/README.md @@ -1,3 +1,3 @@ -# `archons-linux-x64-gnu` +# `archons-napi-linux-x64-gnu` -This is the **x86_64-unknown-linux-gnu** binary for `archons` +This is the **x86_64-unknown-linux-gnu** binary for `archons-napi` diff --git a/npm/linux-x64-gnu/package.json b/npm/linux-x64-gnu/package.json index 2d2cec7..a86dc20 100644 --- a/npm/linux-x64-gnu/package.json +++ b/npm/linux-x64-gnu/package.json @@ -1,6 +1,6 @@ { - "name": "archons-linux-x64-gnu", - "version": "0.1.1", + "name": "archons-napi-linux-x64-gnu", + "version": "0.1.2", "os": [ "linux" ], diff --git a/npm/linux-x64-musl/README.md b/npm/linux-x64-musl/README.md index c6c1485..7b64b6c 100644 --- a/npm/linux-x64-musl/README.md +++ b/npm/linux-x64-musl/README.md @@ -1,3 +1,3 @@ -# `archons-linux-x64-musl` +# `archons-napi-linux-x64-musl` -This is the **x86_64-unknown-linux-musl** binary for `archons` +This is the **x86_64-unknown-linux-musl** binary for `archons-napi` diff --git a/npm/linux-x64-musl/package.json b/npm/linux-x64-musl/package.json index 933bef0..5a49b40 100644 --- a/npm/linux-x64-musl/package.json +++ b/npm/linux-x64-musl/package.json @@ -1,6 +1,6 @@ { - "name": "archons-linux-x64-musl", - "version": "0.1.1", + "name": "archons-napi-linux-x64-musl", + "version": "0.1.2", "os": [ "linux" ], diff --git a/npm/win32-arm64-msvc/README.md b/npm/win32-arm64-msvc/README.md index a78034c..92926aa 100644 --- a/npm/win32-arm64-msvc/README.md +++ b/npm/win32-arm64-msvc/README.md @@ -1,3 +1,3 @@ -# `archons-win32-arm64-msvc` +# `archons-napi-win32-arm64-msvc` -This is the **aarch64-pc-windows-msvc** binary for `archons` +This is the **aarch64-pc-windows-msvc** binary for `archons-napi` diff --git a/npm/win32-arm64-msvc/package.json b/npm/win32-arm64-msvc/package.json index dc2d627..9e0ef73 100644 --- a/npm/win32-arm64-msvc/package.json +++ b/npm/win32-arm64-msvc/package.json @@ -1,6 +1,6 @@ { - "name": "archons-win32-arm64-msvc", - "version": "0.1.1", + "name": "archons-napi-win32-arm64-msvc", + "version": "0.1.2", "os": [ "win32" ], diff --git a/npm/win32-ia32-msvc/README.md b/npm/win32-ia32-msvc/README.md index f6a9a73..004c68e 100644 --- a/npm/win32-ia32-msvc/README.md +++ b/npm/win32-ia32-msvc/README.md @@ -1,3 +1,3 @@ -# `archons-win32-ia32-msvc` +# `archons-napi-win32-ia32-msvc` -This is the **i686-pc-windows-msvc** binary for `archons` +This is the **i686-pc-windows-msvc** binary for `archons-napi` diff --git a/npm/win32-ia32-msvc/package.json b/npm/win32-ia32-msvc/package.json index c409dc4..5cb71f7 100644 --- a/npm/win32-ia32-msvc/package.json +++ b/npm/win32-ia32-msvc/package.json @@ -1,6 +1,6 @@ { - "name": "archons-win32-ia32-msvc", - "version": "0.1.1", + "name": "archons-napi-win32-ia32-msvc", + "version": "0.1.2", "os": [ "win32" ], diff --git a/npm/win32-x64-msvc/README.md b/npm/win32-x64-msvc/README.md index 5523509..8934815 100644 --- a/npm/win32-x64-msvc/README.md +++ b/npm/win32-x64-msvc/README.md @@ -1,3 +1,3 @@ -# `archons-win32-x64-msvc` +# `archons-napi-win32-x64-msvc` -This is the **x86_64-pc-windows-msvc** binary for `archons` +This is the **x86_64-pc-windows-msvc** binary for `archons-napi` diff --git a/npm/win32-x64-msvc/package.json b/npm/win32-x64-msvc/package.json index 11be1ab..3b9308a 100644 --- a/npm/win32-x64-msvc/package.json +++ b/npm/win32-x64-msvc/package.json @@ -1,6 +1,6 @@ { - "name": "archons-win32-x64-msvc", - "version": "0.1.1", + "name": "archons-napi-win32-x64-msvc", + "version": "0.1.2", "os": [ "win32" ], diff --git a/package.json b/package.json index 3951c78..f835a00 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "index.js" ], "napi": { - "name": "archons", + "name": "archons-napi", "triples": { "defaults": true, "additional": [ @@ -110,4 +110,4 @@ "singleQuote": true, "arrowParens": "always" } -} +} \ No newline at end of file