codecane 1.0.420-beta.28 → 1.0.420-beta.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.
- package/index.js +2 -12
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -14,9 +14,8 @@ const packageName = 'codecane'
|
|
|
14
14
|
function createConfig(packageName) {
|
|
15
15
|
const homeDir = os.homedir()
|
|
16
16
|
const configDir = path.join(homeDir, '.config', 'manicode')
|
|
17
|
-
const binaryName =
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
const binaryName = process.platform === 'win32' ? `${packageName}.exe` : packageName
|
|
18
|
+
|
|
20
19
|
return {
|
|
21
20
|
homeDir,
|
|
22
21
|
configDir,
|
|
@@ -436,15 +435,6 @@ async function checkForUpdates(runningProcess, exitListener) {
|
|
|
436
435
|
}
|
|
437
436
|
|
|
438
437
|
async function main() {
|
|
439
|
-
// Bold, bright warning for staging environment
|
|
440
|
-
console.log('\x1b[1m\x1b[91m' + '='.repeat(60) + '\x1b[0m')
|
|
441
|
-
console.log('\x1b[1m\x1b[93m❄️ CODECANE STAGING ENVIRONMENT ❄️\x1b[0m')
|
|
442
|
-
console.log(
|
|
443
|
-
'\x1b[1m\x1b[91mFOR TESTING PURPOSES ONLY - NOT FOR PRODUCTION USE\x1b[0m'
|
|
444
|
-
)
|
|
445
|
-
console.log('\x1b[1m\x1b[91m' + '='.repeat(60) + '\x1b[0m')
|
|
446
|
-
console.log('')
|
|
447
|
-
|
|
448
438
|
await ensureBinaryExists()
|
|
449
439
|
|
|
450
440
|
// Start the binary with codecane argument
|