codecane 1.0.420-beta.3 → 1.0.420-beta.30
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 +12 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -14,8 +14,9 @@ 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
|
-
|
|
17
|
+
const binaryName =
|
|
18
|
+
process.platform === 'win32' ? `${packageName}.exe` : packageName
|
|
19
|
+
|
|
19
20
|
return {
|
|
20
21
|
homeDir,
|
|
21
22
|
configDir,
|
|
@@ -435,6 +436,15 @@ async function checkForUpdates(runningProcess, exitListener) {
|
|
|
435
436
|
}
|
|
436
437
|
|
|
437
438
|
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
|
+
|
|
438
448
|
await ensureBinaryExists()
|
|
439
449
|
|
|
440
450
|
// Start the binary with codecane argument
|