instatunnel 1.0.18 → 1.0.20
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/instatunnel +0 -0
- package/bin/instatunnel-darwin-amd64 +0 -0
- package/bin/instatunnel-darwin-arm64 +0 -0
- package/bin/instatunnel-freebsd-amd64 +0 -0
- package/bin/instatunnel-linux-386 +0 -0
- package/bin/instatunnel-linux-amd64 +0 -0
- package/bin/instatunnel-linux-arm64 +0 -0
- package/bin/instatunnel-openbsd-amd64 +0 -0
- package/bin/instatunnel-windows-386.exe +0 -0
- package/bin/instatunnel-windows-amd64.exe +0 -0
- package/bin/instatunnel.ps1 +0 -0
- package/bin/it +0 -0
- package/bin/it-darwin-amd64 +0 -0
- package/bin/it-darwin-arm64 +0 -0
- package/bin/it-freebsd-amd64 +0 -0
- package/bin/it-linux-386 +0 -0
- package/bin/it-linux-amd64 +0 -0
- package/bin/it-linux-arm64 +0 -0
- package/bin/it-openbsd-amd64 +0 -0
- package/bin/it-windows-386.exe +0 -0
- package/bin/it-windows-amd64.exe +0 -0
- package/bin/it.ps1 +0 -0
- package/install.js +27 -5
- package/package.json +1 -1
package/bin/instatunnel
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/bin/instatunnel.ps1
CHANGED
|
File without changes
|
package/bin/it
CHANGED
|
Binary file
|
package/bin/it-darwin-amd64
CHANGED
|
Binary file
|
package/bin/it-darwin-arm64
CHANGED
|
Binary file
|
package/bin/it-freebsd-amd64
CHANGED
|
Binary file
|
package/bin/it-linux-386
CHANGED
|
Binary file
|
package/bin/it-linux-amd64
CHANGED
|
Binary file
|
package/bin/it-linux-arm64
CHANGED
|
Binary file
|
package/bin/it-openbsd-amd64
CHANGED
|
Binary file
|
package/bin/it-windows-386.exe
CHANGED
|
Binary file
|
package/bin/it-windows-amd64.exe
CHANGED
|
Binary file
|
package/bin/it.ps1
CHANGED
|
File without changes
|
package/install.js
CHANGED
|
@@ -114,17 +114,39 @@ async function downloadBinary() {
|
|
|
114
114
|
if (fs.existsSync(sourceBinaryPath)) {
|
|
115
115
|
log('✅ Using pre-compiled binary: ' + sourceBinaryName, 'green');
|
|
116
116
|
|
|
117
|
+
// Set permissions on source binary first
|
|
118
|
+
try {
|
|
119
|
+
fs.chmodSync(sourceBinaryPath, 0o755);
|
|
120
|
+
} catch (chmodError) {
|
|
121
|
+
// Ignore chmod errors on Windows
|
|
122
|
+
if (platform !== 'windows') {
|
|
123
|
+
console.warn('Warning: Could not set permissions on source binary');
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
117
127
|
// Copy to main binary names
|
|
118
128
|
const mainBinaryPath = path.join(binDir, BINARY_NAME + extension);
|
|
119
129
|
const aliasBinaryPath = path.join(binDir, 'it' + extension);
|
|
120
130
|
|
|
131
|
+
// Remove existing files if they exist
|
|
132
|
+
try {
|
|
133
|
+
if (fs.existsSync(mainBinaryPath)) fs.unlinkSync(mainBinaryPath);
|
|
134
|
+
if (fs.existsSync(aliasBinaryPath)) fs.unlinkSync(aliasBinaryPath);
|
|
135
|
+
} catch (unlinkError) {
|
|
136
|
+
// Continue if we can't remove existing files
|
|
137
|
+
}
|
|
138
|
+
|
|
121
139
|
fs.copyFileSync(sourceBinaryPath, mainBinaryPath);
|
|
122
140
|
fs.copyFileSync(sourceBinaryPath, aliasBinaryPath);
|
|
123
141
|
|
|
124
142
|
// Make executable on Unix systems
|
|
125
143
|
if (platform !== 'windows') {
|
|
126
|
-
|
|
127
|
-
|
|
144
|
+
try {
|
|
145
|
+
fs.chmodSync(mainBinaryPath, 0o755);
|
|
146
|
+
fs.chmodSync(aliasBinaryPath, 0o755);
|
|
147
|
+
} catch (chmodError) {
|
|
148
|
+
console.warn('Warning: Could not set executable permissions');
|
|
149
|
+
}
|
|
128
150
|
}
|
|
129
151
|
|
|
130
152
|
log('✅ InstaTunnel CLI installed successfully!', 'green');
|
|
@@ -165,9 +187,9 @@ async function downloadBinary() {
|
|
|
165
187
|
|
|
166
188
|
// Make executable on Unix systems
|
|
167
189
|
if (platform !== 'windows') {
|
|
168
|
-
fs.chmodSync(sourceBinaryPath,
|
|
169
|
-
fs.chmodSync(mainBinaryPath,
|
|
170
|
-
fs.chmodSync(aliasBinaryPath,
|
|
190
|
+
fs.chmodSync(sourceBinaryPath, 0o755);
|
|
191
|
+
fs.chmodSync(mainBinaryPath, 0o755);
|
|
192
|
+
fs.chmodSync(aliasBinaryPath, 0o755);
|
|
171
193
|
}
|
|
172
194
|
|
|
173
195
|
log('✅ InstaTunnel CLI installed successfully!', 'green');
|