diff --git a/apps/remixdesktop/afterbuild.js b/apps/remixdesktop/afterbuild.js new file mode 100644 index 0000000000..bf90d92679 --- /dev/null +++ b/apps/remixdesktop/afterbuild.js @@ -0,0 +1,18 @@ +const { spawn } = require('child_process'); +exports.default = async function afterbuild(context) { + console.log('AFTER BUILD', context); + const child = spawn('ls', '-la', { shell: true }); + + child.stdout.on('data', (data) => { + console.log(`stdout: ${data}`); + }); + + child.stderr.on('data', (data) => { + console.error(`stderr: ${data}`); + }); + + child.on('close', (code) => { + console.log(`child process exited with code ${code}`); + }); + +} \ No newline at end of file diff --git a/apps/remixdesktop/notarize.js b/apps/remixdesktop/notarize.js index f92fbd1560..141ecae255 100644 --- a/apps/remixdesktop/notarize.js +++ b/apps/remixdesktop/notarize.js @@ -1,6 +1,6 @@ const { notarize } = require('@electron/notarize'); - +const fs = require('fs'); exports.default = async function notarizing(context) { const { electronPlatformName, appOutDir } = context; // Provided by electron-builder @@ -12,7 +12,10 @@ exports.default = async function notarizing(context) { const appName = context.packager.appInfo.productFilename; - console.log(appName); + const files = fs.readdirSync(appOutDir, 'utf8') + + + console.log(files); console.log({ appBundleId: 'org.ethereum.remix-ide', // Your app's bundle ID diff --git a/apps/remixdesktop/package.json b/apps/remixdesktop/package.json index 5ff6ceacd2..8123f6047b 100644 --- a/apps/remixdesktop/package.json +++ b/apps/remixdesktop/package.json @@ -64,13 +64,13 @@ "build": { "productName": "Remix IDE 2", "appId": "org.ethereum.remix-ide", - "asar": false, + "asar": true, "generateUpdatesFilesForAllChannels": true, "icon": "assets", "files": [ "build/**/*" ], - "afterSign": "notarize.js", + "afterAllArtifactBuild": "afterbuild.js", "publish": [ { "provider": "github",