mirror of
https://github.com/fluxscape/fluxscape.git
synced 2026-01-12 07:12:54 +01:00
feat: build (#13)
This commit is contained in:
2
package-lock.json
generated
2
package-lock.json
generated
@@ -48967,7 +48967,7 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"packages/noodl-editor": {
|
"packages/noodl-editor": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@electron/remote": "^2.1.1",
|
"@electron/remote": "^2.1.1",
|
||||||
"@jaames/iro": "^5.5.2",
|
"@jaames/iro": "^5.5.2",
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ module.exports = async function (params) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const appId = 'noodl.net.noodl';
|
const appId = 'fluxscape.net.fluxscape';
|
||||||
|
|
||||||
const appPath = path.join(params.appOutDir, `${params.packager.appInfo.productFilename}.app`);
|
const appPath = path.join(params.appOutDir, `${params.packager.appInfo.productFilename}.app`);
|
||||||
if (!fs.existsSync(appPath)) {
|
if (!fs.existsSync(appPath)) {
|
||||||
|
|||||||
@@ -15,17 +15,30 @@
|
|||||||
"test:ci": "webpack-cli --config=webpackconfigs/webpack.test-ci.js && electron test.js"
|
"test:ci": "webpack-cli --config=webpackconfigs/webpack.test-ci.js && electron test.js"
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"appId": "noodl.net.noodl-editor",
|
"appId": "fluxscape.net.fluxscape",
|
||||||
|
"afterSign": "./build/macos-notarize.js",
|
||||||
|
"mac": {
|
||||||
|
"hardenedRuntime": true,
|
||||||
|
"entitlements": "build/entitlements.mac.plist",
|
||||||
|
"extendInfo": {
|
||||||
|
"LSMultipleInstancesProhibited": true,
|
||||||
|
"NSMicrophoneUsageDescription": "Allow Fluxscape apps that you create and run to access the microphone?",
|
||||||
|
"NSCameraUsageDescription": "Allow Fluxscape apps that you create and run to access the camera?"
|
||||||
|
}
|
||||||
|
},
|
||||||
"win": {
|
"win": {
|
||||||
"target": "nsis"
|
"target": "nsis"
|
||||||
},
|
},
|
||||||
"nsis": {
|
"nsis": {
|
||||||
"guid": "noodl.net.noodl-editor"
|
"guid": "fluxscape.net.fluxscape"
|
||||||
|
},
|
||||||
|
"linux": {
|
||||||
|
"target": "deb"
|
||||||
},
|
},
|
||||||
"protocols": {
|
"protocols": {
|
||||||
"name": "noodl",
|
"name": "fluxscape",
|
||||||
"schemes": [
|
"schemes": [
|
||||||
"noodl"
|
"fluxscape"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"npmRebuild": false,
|
"npmRebuild": false,
|
||||||
|
|||||||
@@ -72,6 +72,14 @@ import { getCurrentPlatform } from '../helper';
|
|||||||
// NOTE: Getting error "Cannot set properties of null (setting 'dev')" here,
|
// NOTE: Getting error "Cannot set properties of null (setting 'dev')" here,
|
||||||
// It basically means that some package is not relative to this path.
|
// It basically means that some package is not relative to this path.
|
||||||
console.log("--- Run 'npm install' ...");
|
console.log("--- Run 'npm install' ...");
|
||||||
|
|
||||||
|
if (platform === "darwin") {
|
||||||
|
execSync(`npm install electron-notarize`, {
|
||||||
|
stdio: 'inherit',
|
||||||
|
env: process.env
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
execSync(`npm install --arch=${arch} --scope noodl-editor`, {
|
execSync(`npm install --arch=${arch} --scope noodl-editor`, {
|
||||||
stdio: 'inherit',
|
stdio: 'inherit',
|
||||||
env: process.env
|
env: process.env
|
||||||
|
|||||||
Reference in New Issue
Block a user