@seyuna/cli 0.0.2-dev.5 → 0.0.2-dev.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/seyuna-linux +0 -0
- package/deno-wrapper.ts +7 -3
- package/deno.json +1 -1
- package/node-install.js +2 -7
- package/package.json +1 -1
- package/bin/seyuna +0 -0
package/bin/seyuna-linux
CHANGED
|
Binary file
|
package/deno-wrapper.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { join } from "
|
|
1
|
+
import { fromFileUrl, dirname, join } from "jsr:@std/path@^0.224.0";
|
|
2
2
|
|
|
3
|
+
// Get the directory where this script is located
|
|
4
|
+
const scriptDir = dirname(fromFileUrl(import.meta.url));
|
|
5
|
+
|
|
6
|
+
// Use scriptDir instead of cwd
|
|
3
7
|
function getWritableDir(): string {
|
|
4
|
-
return join(
|
|
8
|
+
return join(scriptDir, ".seyuna");
|
|
5
9
|
}
|
|
6
10
|
|
|
7
11
|
const platform = Deno.build.os;
|
|
@@ -11,7 +15,7 @@ const binaryName = platform === "windows"
|
|
|
11
15
|
? "seyuna-macos"
|
|
12
16
|
: "seyuna-linux";
|
|
13
17
|
|
|
14
|
-
const version = "0.0.2-dev.
|
|
18
|
+
const version = "0.0.2-dev.6";
|
|
15
19
|
const url = `https://github.com/seyuna-corp/seyuna-cli/releases/download/v${version}/${binaryName}`;
|
|
16
20
|
|
|
17
21
|
const binDir = getWritableDir();
|
package/deno.json
CHANGED
package/node-install.js
CHANGED
|
@@ -6,7 +6,7 @@ import { fileURLToPath } from "url";
|
|
|
6
6
|
import process from "process";
|
|
7
7
|
|
|
8
8
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
9
|
-
const version = "0.0.2-dev.
|
|
9
|
+
const version = "0.0.2-dev.6";
|
|
10
10
|
|
|
11
11
|
async function downloadFile(url, dest) {
|
|
12
12
|
const res = await fetch(url);
|
|
@@ -43,12 +43,7 @@ async function main() {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
const releaseUrl = `https://github.com/seyuna-corp/seyuna-cli/releases/download/v${version}/${target}`;
|
|
46
|
-
const
|
|
47
|
-
? "seyuna-windows.exe"
|
|
48
|
-
: platform === "darwin"
|
|
49
|
-
? "seyuna-macos"
|
|
50
|
-
: "seyuna-linux";
|
|
51
|
-
const dest = path.join(__dirname, "bin", binaryName);
|
|
46
|
+
const dest = path.join(__dirname, "bin", target);
|
|
52
47
|
|
|
53
48
|
try {
|
|
54
49
|
await downloadFile(releaseUrl, dest);
|
package/package.json
CHANGED
package/bin/seyuna
DELETED
|
Binary file
|