diff --git a/package-lock.json b/package-lock.json index b517890..03a1416 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@rage-against-the-pixel/unity-cli", - "version": "1.6.3", + "version": "1.6.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@rage-against-the-pixel/unity-cli", - "version": "1.6.3", + "version": "1.6.4", "license": "MIT", "dependencies": { "@electron/asar": "^4.0.1", diff --git a/package.json b/package.json index 27bb3c6..ae07168 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rage-against-the-pixel/unity-cli", - "version": "1.6.3", + "version": "1.6.4", "description": "A command line utility for the Unity Game Engine.", "author": "RageAgainstThePixel", "license": "MIT", diff --git a/src/license-client.ts b/src/license-client.ts index f257834..d266d60 100644 --- a/src/license-client.ts +++ b/src/license-client.ts @@ -111,6 +111,11 @@ export class LicensingClient { fs.mkdirSync(servicesConfigDirectory, { recursive: true }); } + if (process.platform !== 'win32') { + fs.chmodSync(servicesConfigDirectory, 0o755); + } + + fs.accessSync(servicesConfigDirectory, fs.constants.R_OK | fs.constants.W_OK); return path.join(servicesConfigDirectory, 'services-config.json'); } @@ -418,6 +423,11 @@ export class LicensingClient { fs.writeFileSync(servicesConfigPath, Buffer.from(options.servicesConfig, 'base64')); } + if (process.platform !== 'win32') { + fs.chmodSync(servicesConfigPath, 0o644); + } + + fs.accessSync(servicesConfigPath, fs.constants.R_OK); this.logger.debug(`Using services config at: ${servicesConfigPath}`); const output = await this.exec([`--acquire-floating`], true);