jumpurr
Version:
jumpurr is a terminal-based game where you control a cat running through a retro-style environment, avoiding obstacles and collecting items.
19 lines (13 loc) • 497 B
JavaScript
const fs = require('fs');
const path = require('path');
try {
const binFile = path.join(__dirname, '..', 'bin', 'index.js');
if (process.platform !== 'win32') {
const currentMode = fs.statSync(binFile).mode;
const executableMode = currentMode | 0o111;
fs.chmodSync(binFile, executableMode);
console.log('Executable permissions set for bin/index.js');
}
} catch (error) {
console.error('Note: Could not set executable permissions:', error.message);
}