Skip to content

Commit

Permalink
remove dock & better build
Browse files Browse the repository at this point in the history
  • Loading branch information
vincelwt committed Dec 1, 2022
1 parent 2ddbc88 commit f69cda4
Show file tree
Hide file tree
Showing 6 changed files with 13,906 additions and 2,683 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

This is a simple app that makes ChatGPT live in your menubar.

Download from the "Releases" section.
<p align="center">
<img src="./images/screenshot.jpeg" width="700">
</p>

![Screenshot](./images/screenshot.jpeg)
Download from the "Releases" section.
19 changes: 17 additions & 2 deletions forge.config.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,43 @@
// const { parsed } = require("dotenv").config();
module.exports = {
packagerConfig: {
name: "ChatGPT",
executableName: "ChatGPT",
icon: "images/icon",
extendInfo: {
LSUIElement: "true",
},
// osxSign: {},
// osxNotarize: {
// tool: "notarytool",
// appleId: parsed.APPLE_ID,
// appleIdPassword: parsed.APPLE_PASSWORD,
// teamId: parsed.APPLE_TEAM_ID,
// },
},
publishers: [
{
name: "@electron-forge/publisher-github",
config: {
repository: {
owner: "vincelwt",
name: "chatgpt-menubar",
name: "chatgpt-mac",
},
prerelease: true,
},
},
],

rebuildConfig: {},
makers: [
{
name: "@electron-forge/maker-squirrel",
config: {},
},
{
name: "@electron-forge/maker-zip",
name: "@electron-forge/maker-dmg",
platforms: ["darwin"],
config: {},
},
{
name: "@electron-forge/maker-deb",
Expand Down
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const mb = menubar({
},
preloadWindow: true,
showDockIcon: false,
// showOnAllWorkspaces: false,
// tray,
icon: image,
// icon: image,
Expand All @@ -37,6 +38,10 @@ const mb = menubar({
mb.on("ready", () => {
const { window } = mb;

app.dock.hide();

// window.setVisibleOnAllWorkspaces(true);

// open in new window
app.on("web-contents-created", (event, contents) => {
contents.on("will-navigate", (event, navigationUrl) => {
Expand Down
Loading

0 comments on commit f69cda4

Please sign in to comment.