Skip to content

Commit

Permalink
Merge pull request #27 from ibttf/build-fix
Browse files Browse the repository at this point in the history
finally updated build
  • Loading branch information
ibttf authored Jan 1, 2025
2 parents b7e9244 + e6a24b8 commit fd58dd8
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 71 deletions.
Binary file modified .DS_Store
Binary file not shown.
69 changes: 49 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,22 @@

An invisible desktop application that will help you pass your technical interviews.


https://github.com/user-attachments/assets/caf1e6cd-27d5-4033-b8c5-9df1cb52b21d


## Invisibility Compatibility

The application is invisible to:

- Zoom versions below 6.1.6 (inclusive)
- All browser-based screen recording software
- All versions of Discord
- Mac OS screenshot functionality (Command + Shift + 3/4)
- Mac OS _screenshot_ functionality (Command + Shift + 3/4/5)

Note: The application is **NOT** invisible to:

- Zoom versions 6.1.6 and above
- https://zoom.en.uptodown.com/mac/versions (link to downgrade Zoom if needed)
- Mac OS native screen recording (Command + Shift + 5)
- https://zoom.en.uptodown.com/mac/versions (link to downgrade Zoom if needed)
- Mac OS native screen _recording_ (Command + Shift + 5)

## Features

Expand All @@ -39,6 +37,7 @@ The application uses unidentifiable global keyboard shortcuts that won't be dete
- Take Screenshot: [Control or Cmd + H]
- Process Screenshots: [Control or Cmd + Enter]
- Reset View: [Control or Cmd + R]
- Quit: [Control or Cmd + Q]

## Usage

Expand All @@ -49,9 +48,8 @@ The application uses unidentifiable global keyboard shortcuts that won't be dete

2. **Capturing Problem**

- Use global shortcut to take screenshots
- Capture question text and code separately for better analysis
- Screenshots are automatically added to the processing queue
- Use global shortcut [Control or Cmd + H] to take screenshots
- Screenshots are automatically added to the queue of up to 5.

3. **Processing**

Expand Down Expand Up @@ -123,18 +121,6 @@ This will:
- Launch the Electron application
- Enable hot-reloading for development

## Building for Production

To create a production build:

```bash
npm run app:build
# or
bun run app:build
```

The built application will be available in the `release` directory.

## Tech Stack

- Electron
Expand All @@ -150,6 +136,49 @@ The built application will be available in the `release` directory.
1. On first launch, you'll need to provide your OpenAI API key
2. The application will store your settings locally using electron-store

## Building (for Roy)

notarizing script is wack asf, we have an auto code signing in the package.json, but we need to manually notarize

```
xcrun notarytool store-credentials "my-apple-creds" \
--apple-id "[email protected]" \
--team-id "YOUR_TEAM_ID" \
--password "XXXX-XXXX-XXXX-XXXX"
```

run that ^ and then cd into release and run

```
#intel
arch -arm64 xcrun notarytool submit "/Users/roylee0912/Development/interview-coder/release/Interview Coder-1.0.0.dmg" \
--keychain-profile "my-apple-creds" \
--wait
#silicon
arch -arm64 xcrun notarytool submit "/Users/roylee0912/Development/interview-coder/release/Interview Coder-1.0.0-arm64.dmg" \
--keychain-profile "my-apple-creds" \
--wait
xcrun stapler staple "Interview Coder-1.0.0.dmg"
xcrun stapler staple "Interview Coder-1.0.0-arm64.dmg"
#validating
xcrun stapler validate "/Users/roylee0912/Development/interview-coder/release/Interview Coder-1.0.0.dmg"
xcrun stapler validate "/Users/roylee0912/Development/interview-coder/release/Interview Coder-1.0.0-arm64.dmg"
```

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.
Expand Down
3 changes: 0 additions & 3 deletions electron-builder.env

This file was deleted.

1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 16 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@
"scripts": {
"clean": "rimraf dist dist-electron",
"dev": "cross-env NODE_ENV=development vite",
"build": "node scripts/build.js",
"build": "npm run clean && cross-env NODE_ENV=production tsc && vite build && electron-builder --mac",
"preview": "vite preview",
"electron:dev": "tsc -p electron/tsconfig.json && electron .",
"app:dev": "concurrently \"cross-env NODE_ENV=development vite\" \"wait-on http://localhost:5173 && cross-env electron .\"",
"app:build": "npm run build",
"watch": "tsc -p electron/tsconfig.json --watch"
"watch": "tsc -p electron/tsconfig.json --watch",
"app:dir": "electron-builder --dir",
"app:dist": "electron-builder"
},
"build": {
"appId": "interview.coder.id",
"appId": "com.chunginlee.interviewcoder",
"productName": "Interview Coder",
"files": [
"dist/**/*",
Expand All @@ -28,14 +30,21 @@
"mac": {
"category": "public.app-category.developer-tools",
"target": [
"dmg",
"zip"
{
"target": "dmg",
"arch": "x64"
},
{
"target": "dmg",
"arch": "arm64"
}
],
"icon": "assets/icons/mac/icon.icns",
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "build/entitlements.mac.plist",
"entitlementsInherit": "build/entitlements.mac.plist"
"entitlementsInherit": "build/entitlements.mac.plist",
"identity": "Chungin Lee (7JVNAY4725)"
},
"win": {
"target": [
Expand All @@ -60,6 +69,7 @@
"license": "ISC",
"description": "An invisible desktop application to help you pass your technical interviews.",
"devDependencies": {
"@electron/notarize": "^2.3.0",
"@types/color": "^4.2.0",
"@types/diff": "^6.0.0",
"@types/electron": "^1.4.38",
Expand Down
42 changes: 0 additions & 42 deletions scripts/build.js

This file was deleted.

0 comments on commit fd58dd8

Please sign in to comment.