Skip to content

Commit 49f4d9b

Browse files
authored
Merge pull request #82 from FlowTestAI/add-logo-icon
Add logo and icon for mac release
2 parents ee24883 + b80095e commit 49f4d9b

File tree

9 files changed

+16
-4
lines changed

9 files changed

+16
-4
lines changed
251 KB
Binary file not shown.
203 KB
Loading

packages/flowtest-electron/electron-main.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ const registerRendererEventHandlers = require('./src/ipc/collection');
99
let mainWindow;
1010
let watcher;
1111

12+
if (process.env.NODE_ENV === 'production') {
13+
const noop = () => {};
14+
console.log = noop;
15+
console.info = noop;
16+
console.error = noop;
17+
console.warn = noop;
18+
console.debug = noop;
19+
console.trace = noop;
20+
}
21+
1222
app.on('ready', async () => {
1323
const menu = Menu.buildFromTemplate(template);
1424
Menu.setApplicationMenu(menu);
@@ -17,6 +27,7 @@ app.on('ready', async () => {
1727
mainWindow = new BrowserWindow({
1828
width: 1280,
1929
height: 768,
30+
icon: path.join(__dirname, 'assets/MyIcon.png'),
2031
webPreferences: {
2132
nodeIntegration: true,
2233
contextIsolation: true,

packages/flowtest-electron/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
"productName": "FlowTestAI",
44
"version": "1.0.0",
55
"homepage": "https://github.com/FlowTestAI/FlowTest/tree/main",
6-
"description": "OpenSource IDE for designing API powered flows",
6+
"description": "GenAI powered OpenSource IDE for API first workflows",
77
"main": "electron-main.js",
88
"bugs": {
99
"url": "https://github.com/FlowTestAI/FlowTest/issues"
1010
},
1111
"scripts": {
1212
"start": "electron .",
1313
"test": "jest",
14-
"pack": "electron-builder --dir",
15-
"dist": "electron-builder"
14+
"pack": "NODE_ENV=production electron-builder --dir",
15+
"dist": "NODE_ENV=production electron-builder"
1616
},
1717
"author": "Sajal Jain <jsajal1993@gmail.com>",
1818
"license": "MIT",
@@ -56,7 +56,8 @@
5656
"category": "public.app-category.developer-tools",
5757
"identity": "Sajal Jain (Z25C545DT5)",
5858
"hardenedRuntime": true,
59-
"gatekeeperAssess": false
59+
"gatekeeperAssess": false,
60+
"icon": "assets/MyIcon.icns"
6061
},
6162
"linux": {
6263
"target": [
-23.7 KB
Binary file not shown.
-26.4 KB
Binary file not shown.
-13.4 KB
Binary file not shown.

src/assets/icons/flow-GPU.png

-22.8 KB
Binary file not shown.

src/assets/icons/flow-triangle.png

-23 KB
Binary file not shown.

0 commit comments

Comments
 (0)