Skip to content

Commit

Permalink
Merge pull request #16 from Tech-Nest-Ventures/add-icons
Browse files Browse the repository at this point in the history
ci: add test file
  • Loading branch information
timeowilliams authored Oct 15, 2024
2 parents 844885f + 2e0daef commit a18a00f
Show file tree
Hide file tree
Showing 92 changed files with 11,817 additions and 13,706 deletions.
Empty file modified .editorconfig
100644 → 100755
Empty file.
Empty file modified .eslintignore
100644 → 100755
Empty file.
Empty file modified .eslintrc.cjs
100644 → 100755
Empty file.
Empty file modified .github/ISSUE_TEMPLATE/bug_report.yml
100644 → 100755
Empty file.
Empty file modified .github/ISSUE_TEMPLATE/config.yml
100644 → 100755
Empty file.
Empty file modified .github/ISSUE_TEMPLATE/feature_request.yml
100644 → 100755
Empty file.
Empty file modified .github/PULL_REQUEST_TEMPLATE.md
100644 → 100755
Empty file.
Empty file modified .github/commit-convention.md
100644 → 100755
Empty file.
5 changes: 5 additions & 0 deletions .github/workflows/playwright.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,25 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
path: deepFocus/deepWork # Ensure this uses the correct path

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install system dependencies for node-gyp
working-directory: deepFocus/deepWork
run: |
brew install cmake
brew install pkg-config
brew install python3
- name: Install dependencies
working-directory: deepFocus/deepWork
run: npm install

- name: Run Playwright tests
working-directory: deepFocus/deepWork
run: npm run test:e2e
Empty file modified .github/workflows/release.yml
100644 → 100755
Empty file.
39 changes: 39 additions & 0 deletions .github/workflows/vitest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Vitest Tests

on:
push:
branches:
- main
paths:
- '**/*.ts'
- '**/*.js'
- 'package.json'
- 'package-lock.json'
pull_request:

jobs:
test:
runs-on: self-hosted

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
path: deepFocus/deepWork

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install system dependencies for node-gyp
run: |
brew install cmake
brew install pkg-config
brew install python3
- name: Install dependencies
run: npm install

- name: Run Vitest tests
run: npm run test
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .npmrc
100644 → 100755
Empty file.
Empty file modified .prettierignore
100644 → 100755
Empty file.
Empty file modified .prettierrc.yaml
100644 → 100755
Empty file.
Empty file modified .releaserc
100644 → 100755
Empty file.
Empty file modified .vscode/extensions.json
100644 → 100755
Empty file.
Empty file modified .vscode/launch.json
100644 → 100755
Empty file.
Empty file modified .vscode/settings.json
100644 → 100755
Empty file.
29 changes: 27 additions & 2 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
[![Release](https://github.com/Tech-Nest-Ventures/deepFocus/actions/workflows/release.yml/badge.svg)](https://github.com/Tech-Nest-Ventures/deepFocus/actions/workflows/release.yml)
[![Version](https://img.shields.io/npm/v/project.svg)](https://www.npmjs.com/package/project)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
![Platform](https://img.shields.io/badge/platform-macOS-lightgrey.svg)

> Building the Oura for productivity. Get insights on how productive you are.
Primarily for MacOS. Coming to Windows & Linux shortly.
Primarily for macOS. Coming to Windows & Linux shortly.

## Table of Contents

Expand Down Expand Up @@ -119,4 +120,28 @@ This will whitelist the app for future use.
2. pnpm (not supported)
We saw some issues with how pnpm was bundling dependencies in the electron-builder stage and it's inability to target certain architectures. We recommend using npm for now.

3. Signing the app
3. Verifying the app:

```bash
codesign -vvv --deep --strict "${appPath}"

# Check the code signing status of a binary
codesign -vvv --strict --verbose "${binary}"

# Check the notarization status of app
spctl -a -v --type install "${dmgPath}"

# Notarize the .dmg after its signed
xcrun notarytool log "UUID" --apple-id "my apple ID" --team-id "my team id" --password "my app password"


# Check contents of provision profile
security cms -D -i "/Users/{yourname}/Library/Developer/Xcode/UserData/Provisioning\ Profiles/{nameOfProvisioningProfile}.provisionprofile"

# Check stapler process
xcrun stapler staple dist/mac-arm64/Deep\ Focus.app

```

4. Find logs:
on macOS: ~/Library/Logs/{app name}/main.log
Empty file modified build/entitlements.mac.plist
100644 → 100755
Empty file.
Empty file modified build/icon.ico
100644 → 100755
Empty file.
Empty file modified build/icon.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified dev-app-update.yml
100644 → 100755
Empty file.
7 changes: 5 additions & 2 deletions electron-builder.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@ asarUnpack:
mac:
entitlements: build/entitlements.mac.plist
entitlementsInherit: build/entitlements.mac.plist
provisioningProfile: "/Users/timeo/Library/Developer/Xcode/UserData/Provisioning Profiles/052673ef-09f2-43fb-a609-24015238f5b0.provisionprofile"
darkModeSupport: true
gatekeeperAssess: true
minimumSystemVersion: "10.13"
hardenedRuntime: true
notarize: false
# notarize: true
target:
- dmg
extendInfo:
Expand All @@ -52,4 +55,4 @@ appImage:
npmRebuild: true

afterSign: scripts/signBinaries.js
afterAllArtifactBuild: scripts/notarize.js
afterAllArtifactBuild: scripts/notarize.js
Empty file modified electron.vite.config.d.ts
100644 → 100755
Empty file.
Empty file modified electron.vite.config.ts
100644 → 100755
Empty file.
Loading

0 comments on commit a18a00f

Please sign in to comment.