From ffe5a77b488b6aada7c79bcb7bb9a7ef122c35cc Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Mon, 16 Sep 2024 09:21:13 +0200 Subject: [PATCH] after pack --- .circleci/config.yml | 4 +++- apps/remixdesktop/after-pack.js | 13 +++++++++++++ apps/remixdesktop/insiders.json | 1 + 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 apps/remixdesktop/after-pack.js diff --git a/.circleci/config.yml b/.circleci/config.yml index 225d772c75..cf58482679 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -483,6 +483,7 @@ jobs: cat release/latest-mac.yml mv release/latest-mac.yml release/latest-mac-<< parameters.arch >>.yml fi + find build - run: name: Notarize the app command: | @@ -545,7 +546,8 @@ jobs: nvm use 20 cd apps/remixdesktop yarn installRipGrepMacOXarm64 - PUBLISH_FOR_PULL_REQUEST='false' DO_NOT_NOTARIZE='true' USE_HARD_LINKS=false ./rundist.bash --arm64 + PUBLISH_FOR_PULL_REQUEST='false' DO_NOT_NOTARIZE='true' USE_HARD_LINKS=false ./rundist.bash --arm64 + find build - run: name: "Run tests" command: | diff --git a/apps/remixdesktop/after-pack.js b/apps/remixdesktop/after-pack.js new file mode 100644 index 0000000000..8feae5ccab --- /dev/null +++ b/apps/remixdesktop/after-pack.js @@ -0,0 +1,13 @@ +const fs = require('fs-extra'); +const path = require('path'); + +exports.default = async function (context) { + const resourcesPath = context.appOutDir; + console.log('resourcesPath', resourcesPath); + console.log('context outdir', context.appOutDir); + // Copy the node-pty module to the app folder + await fs.copy( + path.join(context.appOutDir, 'node_modules', 'node-pty'), + path.join(resourcesPath, 'node_modules', 'node-pty') + ); +}; diff --git a/apps/remixdesktop/insiders.json b/apps/remixdesktop/insiders.json index 0968d6df7b..0215309b50 100644 --- a/apps/remixdesktop/insiders.json +++ b/apps/remixdesktop/insiders.json @@ -7,6 +7,7 @@ "files": [ "build/**/*" ], + "afterPack": "after-pack.js", "afterSign": "aftersign.js", "afterAllArtifactBuild": "afterbuild.js", "publish": [