-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove dependencies and fix task execution (#5)
* Squash fix/task-run (merge-base acccf00, previous tip 5b7792a7e5b4b2b83df28824b44885e8a1bf8116) commit 5b7792a7e5b4b2b83df28824b44885e8a1bf8116 Author: maastrich <pinsaultm@gmail.com> Date: Sat Nov 30 14:53:34 2024 +0100 remove moonx binary commit 8e7abcc0074db0e405a499f8870abe3be245f656 Author: maastrich <pinsaultm@gmail.com> Date: Sat Nov 30 14:52:42 2024 +0100 chore: remove dependencies and fix task execution * bump version to 0.1.4 * change: update postinstall script to prepare * Refactor GitHub Actions workflows for improved structure and caching * change: update workflow job name and refactor setup-binary script * Add existence check for source binary before renaming * Refactor GitHub Actions workflows to remove setup job and streamline dependency installation * fix: update build command in deploy workflow to include current directory * fix: update artifact upload path in deploy workflow * fix: add permission change for renamed binary in setup-binary script * fix: restore postinstall script in package.json * fix: remove unused toto.js file
- Loading branch information
Showing
7 changed files
with
65 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
name: check | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { chmodSync, existsSync, renameSync } from "node:fs"; | ||
import { join } from "node:path"; | ||
|
||
const { platform, arch } = process; | ||
|
||
const src = join( | ||
process.cwd(), | ||
"bin", | ||
`${platform}-${arch}`, | ||
`${platform}-${arch}`, | ||
); | ||
const dest = join(process.cwd(), "bin", "moonx"); | ||
|
||
if (!existsSync(src)) { | ||
console.error(`Binary not found: ${src}`); | ||
process.exit(0); | ||
} | ||
|
||
renameSync(src, dest); | ||
chmodSync(dest, 0o755); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters