@cc-claw/peri 0.1.7 → 0.1.8
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/peri +1 -1
- package/install.js +5 -1
- package/package.json +1 -1
package/bin/peri
CHANGED
package/install.js
CHANGED
|
@@ -98,7 +98,11 @@ async function main() {
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
if (platform.os !== "win32") {
|
|
101
|
-
chmodSync(
|
|
101
|
+
const { chmodSync: chmod } = require("fs");
|
|
102
|
+
chmod(finalPath, 0o755);
|
|
103
|
+
// Ensure the shell wrapper is also executable
|
|
104
|
+
const wrapperPath = join(__dirname, "bin", "peri");
|
|
105
|
+
if (existsSync(wrapperPath)) chmod(wrapperPath, 0o755);
|
|
102
106
|
}
|
|
103
107
|
|
|
104
108
|
console.log(`peri ${VERSION} installed successfully.`);
|