-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #370 from mysteriumnetwork/universal-fix
Fix binary paths/permissions
- Loading branch information
Showing
4 changed files
with
44 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* Copyright (c) 2022 BlockDev AG | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
const path = require("path") | ||
|
||
const chmodr = require("chmodr") | ||
const { Arch } = require("electron-builder") | ||
|
||
exports.default = async function afterPack(context) { | ||
const { electronPlatformName, appOutDir, packager, arch } = context | ||
if (electronPlatformName === "darwin" && arch === Arch.universal) { | ||
// Some files lose their attributes after app.asar merge (for macOS universal binary), | ||
// thus we need to set +x for the binaries | ||
const nodeBinDir = path.join( | ||
packager.getResourcesDir(appOutDir), | ||
"app.asar.unpacked", | ||
"node_modules", | ||
"@mysteriumnetwork", | ||
"node", | ||
"bin", | ||
) | ||
chmodr.sync(nodeBinDir, 0o755) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1033,14 +1033,13 @@ | |
lodash "^4.17.15" | ||
tmp-promise "^3.0.2" | ||
|
||
"@mysteriumnetwork/[email protected].5-p3": | ||
version "1.9.5-p3" | ||
resolved "https://registry.yarnpkg.com/@mysteriumnetwork/node/-/node-1.9.5-p3.tgz#679677d68933f6a966da040365f49ba125d1b8d2" | ||
integrity sha512-VJwxA1Btukjz1hEHyMbmChoYZoFOGjvQ/cGpvxOmEoRMfvV4txBBlQiVZ5UYhyE4TC+euRf41kJhMg1FDRHsHw== | ||
"@mysteriumnetwork/[email protected].6": | ||
version "1.9.6" | ||
resolved "https://registry.yarnpkg.com/@mysteriumnetwork/node/-/node-1.9.6.tgz#b3f1132908d9fa2c4bfba684759a8851f03a8f03" | ||
integrity sha512-7xGv9wEA8IXkC5kOMjGz3Yxz4ItXEElTONzbJDEvQ1Yy37J4rKzlFXu7HZGIeLqq92/Ri6HKAarGZwrwPkM0kQ== | ||
dependencies: | ||
extract-zip "^2.0.0" | ||
node-fetch "^2.6.7" | ||
progress "^2.0.3" | ||
semver "^7.3.7" | ||
targz "^1.0.1" | ||
|
||
|
@@ -2710,6 +2709,11 @@ character-reference-invalid@^1.0.0: | |
resolved "https://registry.yarnpkg.com/character-reference-invalid/-/character-reference-invalid-1.1.4.tgz#083329cda0eae272ab3dbbf37e9a382c13af1560" | ||
integrity sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg== | ||
|
||
chmodr@^1.2.0: | ||
version "1.2.0" | ||
resolved "https://registry.yarnpkg.com/chmodr/-/chmodr-1.2.0.tgz#720e96caa09b7f1cdbb01529b7d0ab6bc5e118b9" | ||
integrity sha512-Y5uI7Iq/Az6HgJEL6pdw7THVd7jbVOTPwsmcPOBjQL8e3N+pz872kzK5QxYGEy21iRys+iHWV0UZQXDFJo1hyA== | ||
|
||
chokidar@^2.1.8: | ||
version "2.1.8" | ||
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.1.8.tgz#804b3a7b6a99358c3c5c61e71d8728f041cff917" | ||
|