@knotpad/app 0.1.4 → 0.1.5
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/brief.js +3 -3
- package/package.json +1 -1
package/brief.js
CHANGED
|
@@ -57,7 +57,7 @@ async function downloadSource() {
|
|
|
57
57
|
|
|
58
58
|
try {
|
|
59
59
|
// Try git clone first (faster and more reliable)
|
|
60
|
-
execSync(`git clone --depth 1 https://github.com/
|
|
60
|
+
execSync(`git clone --depth 1 https://github.com/thillagen/brief.git "${INSTALL_DIR}"`, {
|
|
61
61
|
stdio: "inherit",
|
|
62
62
|
cwd: path.dirname(INSTALL_DIR)
|
|
63
63
|
});
|
|
@@ -70,14 +70,14 @@ async function downloadSource() {
|
|
|
70
70
|
|
|
71
71
|
await new Promise((resolve, reject) => {
|
|
72
72
|
const file = fs.createWriteStream(zipPath);
|
|
73
|
-
https.get("https://github.com/
|
|
73
|
+
https.get("https://github.com/thillagen/brief/archive/refs/heads/main.zip", (response) => {
|
|
74
74
|
response.pipe(file);
|
|
75
75
|
file.on("finish", () => {
|
|
76
76
|
file.close();
|
|
77
77
|
log("Extracting…");
|
|
78
78
|
try {
|
|
79
79
|
if (process.platform === "win32") {
|
|
80
|
-
execSync(`
|
|
80
|
+
execSync(`powershell -Command "Expand-Archive -Path '${zipPath}' -DestinationPath '${path.dirname(INSTALL_DIR)}' -Force"`, { stdio: "inherit" });
|
|
81
81
|
} else {
|
|
82
82
|
execSync(`unzip -q "${zipPath}" -d "${path.dirname(INSTALL_DIR)}"`, { stdio: "inherit" });
|
|
83
83
|
}
|