├── .gitignore
├── README.md
├── forge.config.js
├── images
├── OpenAI_Logo.svg
├── icon.icns
├── icon.png
├── icon@2x.icns
├── icon@2x.png
├── newiconTemplate.png
├── newiconTemplate@2x.png
└── screenshot.jpeg
├── index.css
├── index.html
├── index.js
├── package-lock.json
└── package.json
/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | lerna-debug.log*
8 |
9 | # Diagnostic reports (https://nodejs.org/api/report.html)
10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11 |
12 | # Runtime data
13 | pids
14 | *.pid
15 | *.seed
16 | *.pid.lock
17 | .DS_Store
18 |
19 | # Directory for instrumented libs generated by jscoverage/JSCover
20 | lib-cov
21 |
22 | # Coverage directory used by tools like istanbul
23 | coverage
24 | *.lcov
25 |
26 | # nyc test coverage
27 | .nyc_output
28 |
29 | # node-waf configuration
30 | .lock-wscript
31 |
32 | # Compiled binary addons (https://nodejs.org/api/addons.html)
33 | build/Release
34 |
35 | # Dependency directories
36 | node_modules/
37 | jspm_packages/
38 |
39 | # TypeScript v1 declaration files
40 | typings/
41 |
42 | # TypeScript cache
43 | *.tsbuildinfo
44 |
45 | # Optional npm cache directory
46 | .npm
47 |
48 | # Optional eslint cache
49 | .eslintcache
50 |
51 | # Optional REPL history
52 | .node_repl_history
53 |
54 | # Output of 'npm pack'
55 | *.tgz
56 |
57 | # Yarn Integrity file
58 | .yarn-integrity
59 |
60 | # dotenv environment variables file
61 | .env
62 | .env.test
63 |
64 | # parcel-bundler cache (https://parceljs.org/)
65 | .cache
66 |
67 | # next.js build output
68 | .next
69 |
70 | # nuxt.js build output
71 | .nuxt
72 |
73 | # vuepress build output
74 | .vuepress/dist
75 |
76 | # Serverless directories
77 | .serverless/
78 |
79 | # FuseBox cache
80 | .fusebox/
81 |
82 | # DynamoDB Local files
83 | .dynamodb/
84 |
85 | # Webpack
86 | .webpack/
87 |
88 | # Electron-Forge
89 | out/
90 |
91 | .env
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ChatGPT menubar app
2 |
3 | This is a fork of https://github.com/vincelwt/chatgpt-mac without analytics and compiled from source for swyx personal use. it's literally a Tauri app with a browser window that you can pull up very quickly with a keyboard shortcut
4 |
5 |
6 |
7 |
8 | ## install
9 |
10 | https://github.com/sw-yx/chatgpt-mac/releases/tag/vswyx
11 |
12 | ## usage
13 |
14 | Cmd+Shift+G -> quick open
15 |
16 | Cmd+R -> refresh/clear
17 |
--------------------------------------------------------------------------------
/forge.config.js:
--------------------------------------------------------------------------------
1 | const { parsed } = require("dotenv").config();
2 | module.exports = {
3 | packagerConfig: {
4 | name: "ChatGPT",
5 | executableName: "ChatGPT",
6 | icon: "images/icon",
7 | appBundleId: "com.sw-yx.chatgptmac",
8 | extendInfo: {
9 | LSUIElement: "true",
10 | },
11 | osxSign: {
12 | hardenedRuntime: false,
13 | gatekeeperAssess: false,
14 | identity: "Developer ID Application: Lyser.io Ltd (R4PF6TTR6Z)",
15 | }
16 | },
17 | publishers: [
18 | {
19 | name: "@electron-forge/publisher-github",
20 | config: {
21 | repository: {
22 | owner: "sw-yx",
23 | name: "chatgpt-mac",
24 | },
25 | prerelease: true,
26 | },
27 | },
28 | ],
29 |
30 | rebuildConfig: {},
31 | makers: [
32 | {
33 | name: "@electron-forge/maker-squirrel",
34 | config: {},
35 | },
36 | {
37 | name: "@electron-forge/maker-dmg",
38 | platforms: ["darwin"],
39 | config: {},
40 | },
41 | {
42 | name: "@electron-forge/maker-deb",
43 | config: {},
44 | },
45 | {
46 | name: "@electron-forge/maker-rpm",
47 | config: {},
48 | },
49 | ],
50 | };
51 |
--------------------------------------------------------------------------------
/images/OpenAI_Logo.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/images/icon.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/swyxio/chatgpt-mac/9f2c321fafdf0abb663a3b773bd24440c51b2f9f/images/icon.icns
--------------------------------------------------------------------------------
/images/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/swyxio/chatgpt-mac/9f2c321fafdf0abb663a3b773bd24440c51b2f9f/images/icon.png
--------------------------------------------------------------------------------
/images/icon@2x.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/swyxio/chatgpt-mac/9f2c321fafdf0abb663a3b773bd24440c51b2f9f/images/icon@2x.icns
--------------------------------------------------------------------------------
/images/icon@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/swyxio/chatgpt-mac/9f2c321fafdf0abb663a3b773bd24440c51b2f9f/images/icon@2x.png
--------------------------------------------------------------------------------
/images/newiconTemplate.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/swyxio/chatgpt-mac/9f2c321fafdf0abb663a3b773bd24440c51b2f9f/images/newiconTemplate.png
--------------------------------------------------------------------------------
/images/newiconTemplate@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/swyxio/chatgpt-mac/9f2c321fafdf0abb663a3b773bd24440c51b2f9f/images/newiconTemplate@2x.png
--------------------------------------------------------------------------------
/images/screenshot.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/swyxio/chatgpt-mac/9f2c321fafdf0abb663a3b773bd24440c51b2f9f/images/screenshot.jpeg
--------------------------------------------------------------------------------
/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
3 | Arial, sans-serif;
4 | padding: 0;
5 | margin: 0;
6 | overflow: hidden;
7 | }
8 |
9 | :root {
10 | /* account for the arrow */
11 | --actual-height: calc(100vh - 12px);
12 | }
13 |
14 | .myarrow {
15 | position: relative;
16 | /* padding-top: 12px; */
17 | padding: 12px 0 0 0 ;
18 | }
19 |
20 | .myarrow:before {
21 | content: '';
22 | height: 0;
23 | width: 0;
24 | border-width: 0 8px 12px 8px;
25 | border-style: solid;
26 | border-color: transparent transparent white transparent;
27 | position: absolute;
28 |
29 | top: 0;
30 | left: 50%;
31 | transform: translateX(-50%);
32 | }
33 |
34 | @media (prefers-color-scheme: dark) {
35 | .myarrow:before {
36 | border-color: transparent transparent #343541 transparent !important;
37 | }
38 | }
39 |
40 | .page {
41 | background: #eeeeee;
42 | width: 100%;
43 | height: 100vh;
44 | margin-top: 12px;
45 | margin: 0 auto;
46 | position: relative;
47 | }
48 |
49 | .darwin.page {
50 | border-radius: 8px;
51 | overflow: hidden;
52 | }
53 |
54 | webview {
55 | /* overflow: hidden; */
56 | position: absolute;
57 | top: 0;
58 | left: 0;
59 | width: 100%;
60 | height: calc(100vh - 12px);
61 | display: inline-flex !important;
62 | }
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |