Skip to content

Commit

Permalink
revert: restore ci and rename napi packages
Browse files Browse the repository at this point in the history
  • Loading branch information
fu050409 committed Jul 21, 2024
1 parent 2357243 commit 7b986d9
Show file tree
Hide file tree
Showing 17 changed files with 99 additions and 84 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts/@noctisynth
path: artifacts
- name: Move artifacts
run: yarn artifacts
- name: List packages
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: bindings-${{ matrix.settings.target }}
path: ./@noctisynth/
path: .
- name: List packages
run: ls -R .
shell: bash
Expand Down Expand Up @@ -239,7 +239,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: bindings-x86_64-unknown-linux-gnu
path: ./@noctisynth/
path: .
- name: List packages
run: ls -R .
shell: bash
Expand Down Expand Up @@ -271,7 +271,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: bindings-x86_64-unknown-linux-musl
path: ./@noctisynth/
path: .
- name: List packages
run: ls -R .
shell: bash
Expand All @@ -294,7 +294,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: bindings-aarch64-unknown-linux-gnu
path: ./@noctisynth/
path: .
- name: List packages
run: ls -R .
shell: bash
Expand Down Expand Up @@ -328,7 +328,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: bindings-aarch64-unknown-linux-musl
path: ./@noctisynth/
path: .
- name: List packages
run: ls -R .
shell: bash
Expand Down Expand Up @@ -367,7 +367,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: bindings-armv7-unknown-linux-gnueabihf
path: ./@noctisynth/
path: .
- name: List packages
run: ls -R .
shell: bash
Expand Down
72 changes: 36 additions & 36 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ switch (platform) {
case 'android':
switch (arch) {
case 'arm64':
localFileExisted = existsSync(join(__dirname, '@noctisynth/archons.android-arm64.node'))
localFileExisted = existsSync(join(__dirname, 'archons.android-arm64.node'))
try {
if (localFileExisted) {
nativeBinding = require('./@noctisynth/archons.android-arm64.node')
nativeBinding = require('./archons.android-arm64.node')
} else {
nativeBinding = require('archons-android-arm64')
}
Expand All @@ -44,10 +44,10 @@ switch (platform) {
}
break
case 'arm':
localFileExisted = existsSync(join(__dirname, '@noctisynth/archons.android-arm-eabi.node'))
localFileExisted = existsSync(join(__dirname, 'archons.android-arm-eabi.node'))
try {
if (localFileExisted) {
nativeBinding = require('./@noctisynth/archons.android-arm-eabi.node')
nativeBinding = require('./archons.android-arm-eabi.node')
} else {
nativeBinding = require('archons-android-arm-eabi')
}
Expand All @@ -63,11 +63,11 @@ switch (platform) {
switch (arch) {
case 'x64':
localFileExisted = existsSync(
join(__dirname, '@noctisynth/archons.win32-x64-msvc.node')
join(__dirname, 'archons.win32-x64-msvc.node')
)
try {
if (localFileExisted) {
nativeBinding = require('./@noctisynth/archons.win32-x64-msvc.node')
nativeBinding = require('./archons.win32-x64-msvc.node')
} else {
nativeBinding = require('archons-win32-x64-msvc')
}
Expand All @@ -77,11 +77,11 @@ switch (platform) {
break
case 'ia32':
localFileExisted = existsSync(
join(__dirname, '@noctisynth/archons.win32-ia32-msvc.node')
join(__dirname, 'archons.win32-ia32-msvc.node')
)
try {
if (localFileExisted) {
nativeBinding = require('./@noctisynth/archons.win32-ia32-msvc.node')
nativeBinding = require('./archons.win32-ia32-msvc.node')
} else {
nativeBinding = require('archons-win32-ia32-msvc')
}
Expand All @@ -91,11 +91,11 @@ switch (platform) {
break
case 'arm64':
localFileExisted = existsSync(
join(__dirname, '@noctisynth/archons.win32-arm64-msvc.node')
join(__dirname, 'archons.win32-arm64-msvc.node')
)
try {
if (localFileExisted) {
nativeBinding = require('./@noctisynth/archons.win32-arm64-msvc.node')
nativeBinding = require('./archons.win32-arm64-msvc.node')
} else {
nativeBinding = require('archons-win32-arm64-msvc')
}
Expand All @@ -108,21 +108,21 @@ switch (platform) {
}
break
case 'darwin':
localFileExisted = existsSync(join(__dirname, '@noctisynth/archons.darwin-universal.node'))
localFileExisted = existsSync(join(__dirname, 'archons.darwin-universal.node'))
try {
if (localFileExisted) {
nativeBinding = require('./@noctisynth/archons.darwin-universal.node')
nativeBinding = require('./archons.darwin-universal.node')
} else {
nativeBinding = require('archons-darwin-universal')
}
break
} catch {}
switch (arch) {
case 'x64':
localFileExisted = existsSync(join(__dirname, '@noctisynth/archons.darwin-x64.node'))
localFileExisted = existsSync(join(__dirname, 'archons.darwin-x64.node'))
try {
if (localFileExisted) {
nativeBinding = require('./@noctisynth/archons.darwin-x64.node')
nativeBinding = require('./archons.darwin-x64.node')
} else {
nativeBinding = require('archons-darwin-x64')
}
Expand All @@ -132,11 +132,11 @@ switch (platform) {
break
case 'arm64':
localFileExisted = existsSync(
join(__dirname, '@noctisynth/archons.darwin-arm64.node')
join(__dirname, 'archons.darwin-arm64.node')
)
try {
if (localFileExisted) {
nativeBinding = require('./@noctisynth/archons.darwin-arm64.node')
nativeBinding = require('./archons.darwin-arm64.node')
} else {
nativeBinding = require('archons-darwin-arm64')
}
Expand All @@ -152,10 +152,10 @@ switch (platform) {
if (arch !== 'x64') {
throw new Error(`Unsupported architecture on FreeBSD: ${arch}`)
}
localFileExisted = existsSync(join(__dirname, '@noctisynth/archons.freebsd-x64.node'))
localFileExisted = existsSync(join(__dirname, 'archons.freebsd-x64.node'))
try {
if (localFileExisted) {
nativeBinding = require('./@noctisynth/archons.freebsd-x64.node')
nativeBinding = require('./archons.freebsd-x64.node')
} else {
nativeBinding = require('archons-freebsd-x64')
}
Expand All @@ -168,11 +168,11 @@ switch (platform) {
case 'x64':
if (isMusl()) {
localFileExisted = existsSync(
join(__dirname, '@noctisynth/archons.linux-x64-musl.node')
join(__dirname, 'archons.linux-x64-musl.node')
)
try {
if (localFileExisted) {
nativeBinding = require('./@noctisynth/archons.linux-x64-musl.node')
nativeBinding = require('./archons.linux-x64-musl.node')
} else {
nativeBinding = require('archons-linux-x64-musl')
}
Expand All @@ -181,11 +181,11 @@ switch (platform) {
}
} else {
localFileExisted = existsSync(
join(__dirname, '@noctisynth/archons.linux-x64-gnu.node')
join(__dirname, 'archons.linux-x64-gnu.node')
)
try {
if (localFileExisted) {
nativeBinding = require('./@noctisynth/archons.linux-x64-gnu.node')
nativeBinding = require('./archons.linux-x64-gnu.node')
} else {
nativeBinding = require('archons-linux-x64-gnu')
}
Expand All @@ -197,11 +197,11 @@ switch (platform) {
case 'arm64':
if (isMusl()) {
localFileExisted = existsSync(
join(__dirname, '@noctisynth/archons.linux-arm64-musl.node')
join(__dirname, 'archons.linux-arm64-musl.node')
)
try {
if (localFileExisted) {
nativeBinding = require('./@noctisynth/archons.linux-arm64-musl.node')
nativeBinding = require('./archons.linux-arm64-musl.node')
} else {
nativeBinding = require('archons-linux-arm64-musl')
}
Expand All @@ -210,11 +210,11 @@ switch (platform) {
}
} else {
localFileExisted = existsSync(
join(__dirname, '@noctisynth/archons.linux-arm64-gnu.node')
join(__dirname, 'archons.linux-arm64-gnu.node')
)
try {
if (localFileExisted) {
nativeBinding = require('./@noctisynth/archons.linux-arm64-gnu.node')
nativeBinding = require('./archons.linux-arm64-gnu.node')
} else {
nativeBinding = require('archons-linux-arm64-gnu')
}
Expand All @@ -226,11 +226,11 @@ switch (platform) {
case 'arm':
if (isMusl()) {
localFileExisted = existsSync(
join(__dirname, '@noctisynth/archons.linux-arm-musleabihf.node')
join(__dirname, 'archons.linux-arm-musleabihf.node')
)
try {
if (localFileExisted) {
nativeBinding = require('./@noctisynth/archons.linux-arm-musleabihf.node')
nativeBinding = require('./archons.linux-arm-musleabihf.node')
} else {
nativeBinding = require('archons-linux-arm-musleabihf')
}
Expand All @@ -239,11 +239,11 @@ switch (platform) {
}
} else {
localFileExisted = existsSync(
join(__dirname, '@noctisynth/archons.linux-arm-gnueabihf.node')
join(__dirname, 'archons.linux-arm-gnueabihf.node')
)
try {
if (localFileExisted) {
nativeBinding = require('./@noctisynth/archons.linux-arm-gnueabihf.node')
nativeBinding = require('./archons.linux-arm-gnueabihf.node')
} else {
nativeBinding = require('archons-linux-arm-gnueabihf')
}
Expand All @@ -255,11 +255,11 @@ switch (platform) {
case 'riscv64':
if (isMusl()) {
localFileExisted = existsSync(
join(__dirname, '@noctisynth/archons.linux-riscv64-musl.node')
join(__dirname, 'archons.linux-riscv64-musl.node')
)
try {
if (localFileExisted) {
nativeBinding = require('./@noctisynth/archons.linux-riscv64-musl.node')
nativeBinding = require('./archons.linux-riscv64-musl.node')
} else {
nativeBinding = require('archons-linux-riscv64-musl')
}
Expand All @@ -268,11 +268,11 @@ switch (platform) {
}
} else {
localFileExisted = existsSync(
join(__dirname, '@noctisynth/archons.linux-riscv64-gnu.node')
join(__dirname, 'archons.linux-riscv64-gnu.node')
)
try {
if (localFileExisted) {
nativeBinding = require('./@noctisynth/archons.linux-riscv64-gnu.node')
nativeBinding = require('./archons.linux-riscv64-gnu.node')
} else {
nativeBinding = require('archons-linux-riscv64-gnu')
}
Expand All @@ -283,11 +283,11 @@ switch (platform) {
break
case 's390x':
localFileExisted = existsSync(
join(__dirname, '@noctisynth/archons.linux-s390x-gnu.node')
join(__dirname, 'archons.linux-s390x-gnu.node')
)
try {
if (localFileExisted) {
nativeBinding = require('./@noctisynth/archons.linux-s390x-gnu.node')
nativeBinding = require('./archons.linux-s390x-gnu.node')
} else {
nativeBinding = require('archons-linux-s390x-gnu')
}
Expand Down
6 changes: 3 additions & 3 deletions npm/android-arm-eabi/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "archons-android-arm-eabi",
"version": "0.1.0",
"version": "0.1.1",
"os": [
"android"
],
"cpu": [
"arm"
],
"main": "@noctisynth/archons.android-arm-eabi.node",
"main": "archons.android-arm-eabi.node",
"files": [
"@noctisynth/archons.android-arm-eabi.node"
"archons.android-arm-eabi.node"
],
"description": "Fast, powerful and elegant CLI build tool based on clap-rs",
"keywords": [
Expand Down
6 changes: 3 additions & 3 deletions npm/android-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "archons-android-arm64",
"version": "0.1.0",
"version": "0.1.1",
"os": [
"android"
],
"cpu": [
"arm64"
],
"main": "@noctisynth/archons.android-arm64.node",
"main": "archons.android-arm64.node",
"files": [
"@noctisynth/archons.android-arm64.node"
"archons.android-arm64.node"
],
"description": "Fast, powerful and elegant CLI build tool based on clap-rs",
"keywords": [
Expand Down
6 changes: 3 additions & 3 deletions npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "archons-darwin-arm64",
"version": "0.1.0",
"version": "0.1.1",
"os": [
"darwin"
],
"cpu": [
"arm64"
],
"main": "@noctisynth/archons.darwin-arm64.node",
"main": "archons.darwin-arm64.node",
"files": [
"@noctisynth/archons.darwin-arm64.node"
"archons.darwin-arm64.node"
],
"description": "Fast, powerful and elegant CLI build tool based on clap-rs",
"keywords": [
Expand Down
6 changes: 3 additions & 3 deletions npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "archons-darwin-x64",
"version": "0.1.0",
"version": "0.1.1",
"os": [
"darwin"
],
"cpu": [
"x64"
],
"main": "@noctisynth/archons.darwin-x64.node",
"main": "archons.darwin-x64.node",
"files": [
"@noctisynth/archons.darwin-x64.node"
"archons.darwin-x64.node"
],
"description": "Fast, powerful and elegant CLI build tool based on clap-rs",
"keywords": [
Expand Down
Loading

0 comments on commit 7b986d9

Please sign in to comment.