@yetech/estra7ah 3.1.2 → 3.1.3

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.
Files changed (2) hide show
  1. package/dist/estra7ah.js +16 -6
  2. package/package.json +1 -1
package/dist/estra7ah.js CHANGED
@@ -47,12 +47,22 @@ async function start() {
47
47
  stdio: "inherit",
48
48
  shell: true,
49
49
  };
50
- // Run the runner executable with arguments
51
- const runnerProcess = child_process.spawn(runnerPath, args, options);
52
- // Handle the exit event
53
- runnerProcess.on("exit", (code) => {
54
- console.log(`Runner exited with code ${code}`);
55
- });
50
+ setTimeout(() => {
51
+ // if it's linux,macos, add chmod +x
52
+ if (process.platform !== "win32") {
53
+ try {
54
+ fs.chmodSync(dir_name + "/" + getRunner(), "755");
55
+ } catch (err) {
56
+ console.log("Error setting permissions", err);
57
+ }
58
+ }
59
+ // Run the runner executable with arguments
60
+ const runnerProcess = child_process.spawn(runnerPath, args, options);
61
+ // Handle the exit event
62
+ runnerProcess.on("exit", (code) => {
63
+ console.log(`Runner exited with code ${code}`);
64
+ });
65
+ }, 1000);
56
66
  }
57
67
  start();
58
68
  async function downloadRunner() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yetech/estra7ah",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "description": "Estra7ah Manager",
5
5
  "author": "Abdullah Al-taheri",
6
6
  "keywords": [