mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-14 20:58:41 -09:00
wip
This commit is contained in:
parent
d86fcc90ed
commit
4a49bf2cbf
1 changed files with 4 additions and 3 deletions
7
bin/cp-snapshot.js
vendored
7
bin/cp-snapshot.js
vendored
|
|
@ -1,5 +1,6 @@
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
const fsPromises = require('fs/promises');
|
||||||
const {Arch} = require('electron-builder');
|
const {Arch} = require('electron-builder');
|
||||||
|
|
||||||
function copySnapshot(pathToElectron, archToCopy) {
|
function copySnapshot(pathToElectron, archToCopy) {
|
||||||
|
|
@ -72,9 +73,9 @@ exec "$SCRIPT_DIR/${params.packager.executableName}.bin" "--no-sandbox" "$@"
|
||||||
`
|
`
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await fs.rename(executable, executable + '.bin')
|
await fsPromises.rename(executable, executable + '.bin')
|
||||||
await fs.writeFile(executable, loaderScript)
|
await fsPromises.writeFile(executable, loaderScript)
|
||||||
await fs.chmod(executable, 0o755)
|
await fsPromises.chmod(executable, 0o755)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('failed to create loader for sandbox fix: ' + e.message)
|
console.error('failed to create loader for sandbox fix: ' + e.message)
|
||||||
throw new Error('Failed to create loader for sandbox fix')
|
throw new Error('Failed to create loader for sandbox fix')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue