Skip to content

Commit

Permalink
Merge pull request #82 from FlowTestAI/add-logo-icon
Browse files Browse the repository at this point in the history
Add logo and icon for mac release
  • Loading branch information
jsajal committed Apr 22, 2024
2 parents ee24883 + b80095e commit 49f4d9b
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 4 deletions.
Binary file added packages/flowtest-electron/assets/MyIcon.icns
Binary file not shown.
Binary file added packages/flowtest-electron/assets/MyIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions packages/flowtest-electron/electron-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ const registerRendererEventHandlers = require('./src/ipc/collection');
let mainWindow;
let watcher;

if (process.env.NODE_ENV === 'production') {
const noop = () => {};
console.log = noop;
console.info = noop;
console.error = noop;
console.warn = noop;
console.debug = noop;
console.trace = noop;
}

app.on('ready', async () => {
const menu = Menu.buildFromTemplate(template);
Menu.setApplicationMenu(menu);
Expand All @@ -17,6 +27,7 @@ app.on('ready', async () => {
mainWindow = new BrowserWindow({
width: 1280,
height: 768,
icon: path.join(__dirname, 'assets/MyIcon.png'),
webPreferences: {
nodeIntegration: true,
contextIsolation: true,
Expand Down
9 changes: 5 additions & 4 deletions packages/flowtest-electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
"productName": "FlowTestAI",
"version": "1.0.0",
"homepage": "https://github.com/FlowTestAI/FlowTest/tree/main",
"description": "OpenSource IDE for designing API powered flows",
"description": "GenAI powered OpenSource IDE for API first workflows",
"main": "electron-main.js",
"bugs": {
"url": "https://github.com/FlowTestAI/FlowTest/issues"
},
"scripts": {
"start": "electron .",
"test": "jest",
"pack": "electron-builder --dir",
"dist": "electron-builder"
"pack": "NODE_ENV=production electron-builder --dir",
"dist": "NODE_ENV=production electron-builder"
},
"author": "Sajal Jain <jsajal1993@gmail.com>",
"license": "MIT",
Expand Down Expand Up @@ -56,7 +56,8 @@
"category": "public.app-category.developer-tools",
"identity": "Sajal Jain (Z25C545DT5)",
"hardenedRuntime": true,
"gatekeeperAssess": false
"gatekeeperAssess": false,
"icon": "assets/MyIcon.icns"
},
"linux": {
"target": [
Expand Down
Binary file not shown.
Binary file removed src/assets/icons/Flow-GPU-text-no-background.png
Binary file not shown.
Binary file removed src/assets/icons/FlowTestAI-black.png
Binary file not shown.
Binary file removed src/assets/icons/flow-GPU.png
Binary file not shown.
Binary file removed src/assets/icons/flow-triangle.png
Binary file not shown.

0 comments on commit 49f4d9b

Please sign in to comment.