afterAllArtifactBuild

signmacosdesktop
filip mertens 9 months ago
parent 0f765dda29
commit ea1f23c80d
  1. 18
      apps/remixdesktop/afterbuild.js
  2. 7
      apps/remixdesktop/notarize.js
  3. 4
      apps/remixdesktop/package.json

@ -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}`);
});
}

@ -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

@ -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",

Loading…
Cancel
Save