Skip to content

Commit 2f9fefa

Browse files
committed
feat: at long last my video recorder so that it helps me take good notes
0 parents  commit 2f9fefa

69 files changed

Lines changed: 13438 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: Build Artifacts
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build-windows:
12+
runs-on: windows-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '18'
21+
cache: 'npm'
22+
23+
- name: Setup Python
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: '3.9'
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
31+
- name: Install Python dependencies
32+
run: pip install -r requirements.txt
33+
34+
- name: Install FFmpeg
35+
run: |
36+
choco install ffmpeg -y
37+
echo "FFmpeg installed successfully"
38+
39+
- name: Build Windows application
40+
run: npm run build:win
41+
42+
- name: Upload Windows artifacts
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: windows-build
46+
path: |
47+
dist/*.exe
48+
dist/*.blockmap
49+
dist/win-unpacked/
50+
retention-days: 30
51+
52+
build-macos:
53+
runs-on: macos-latest
54+
steps:
55+
- name: Checkout code
56+
uses: actions/checkout@v4
57+
58+
- name: Setup Node.js
59+
uses: actions/setup-node@v4
60+
with:
61+
node-version: '18'
62+
cache: 'npm'
63+
64+
- name: Setup Python
65+
uses: actions/setup-python@v4
66+
with:
67+
python-version: '3.9'
68+
69+
- name: Install dependencies
70+
run: npm ci
71+
72+
- name: Install Python dependencies
73+
run: pip install -r requirements.txt
74+
75+
- name: Install FFmpeg
76+
run: |
77+
brew install ffmpeg
78+
echo "FFmpeg installed successfully"
79+
80+
- name: Build macOS application
81+
run: npm run build:mac
82+
83+
- name: Upload macOS artifacts
84+
uses: actions/upload-artifact@v4
85+
with:
86+
name: macos-build
87+
path: |
88+
dist/*.dmg
89+
dist/*.blockmap
90+
dist/mac/
91+
retention-days: 30

.github/workflows/build.yml

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
name: Build and Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [windows-latest, macos-latest]
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '18'
24+
cache: 'npm'
25+
26+
- name: Setup Python
27+
uses: actions/setup-python@v4
28+
with:
29+
python-version: '3.9'
30+
31+
- name: Install dependencies
32+
run: npm ci
33+
34+
- name: Install Python dependencies
35+
run: pip install -r requirements.txt
36+
37+
- name: Install FFmpeg (Windows)
38+
if: matrix.os == 'windows-latest'
39+
run: |
40+
choco install ffmpeg -y
41+
echo "FFmpeg installed successfully"
42+
43+
- name: Install FFmpeg (macOS)
44+
if: matrix.os == 'macos-latest'
45+
run: |
46+
brew install ffmpeg
47+
echo "FFmpeg installed successfully"
48+
49+
- name: Build application
50+
run: |
51+
if [ "${{ matrix.os }}" = "windows-latest" ]; then
52+
npm run build:win
53+
else
54+
npm run build:mac
55+
fi
56+
57+
- name: Upload Windows artifacts
58+
if: matrix.os == 'windows-latest'
59+
uses: actions/upload-artifact@v4
60+
with:
61+
name: windows-artifacts
62+
path: |
63+
dist/*.exe
64+
dist/*.blockmap
65+
dist/win-unpacked/
66+
retention-days: 30
67+
68+
- name: Upload macOS artifacts
69+
if: matrix.os == 'macos-latest'
70+
uses: actions/upload-artifact@v4
71+
with:
72+
name: macos-artifacts
73+
path: |
74+
dist/*.dmg
75+
dist/*.blockmap
76+
dist/mac/
77+
retention-days: 30
78+
79+
release:
80+
needs: build
81+
runs-on: ubuntu-latest
82+
if: startsWith(github.ref, 'refs/tags/')
83+
84+
steps:
85+
- name: Checkout code
86+
uses: actions/checkout@v4
87+
88+
- name: Download Windows artifacts
89+
uses: actions/download-artifact@v4
90+
with:
91+
name: windows-artifacts
92+
path: dist/windows
93+
94+
- name: Download macOS artifacts
95+
uses: actions/download-artifact@v4
96+
with:
97+
name: macos-artifacts
98+
path: dist/macos
99+
100+
- name: Create Release
101+
uses: softprops/action-gh-release@v1
102+
with:
103+
files: |
104+
dist/windows/*.exe
105+
dist/windows/*.blockmap
106+
dist/macos/*.dmg
107+
dist/macos/*.blockmap
108+
generate_release_notes: true
109+
draft: false
110+
prerelease: false
111+
env:
112+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
node_modules
2+
dist
3+
out
4+
.DS_Store
5+
.eslintcache
6+
*.log*
7+
.vscode
8+
build
9+
.idea
10+
.env
11+
.env.local
12+
.env.development.local
13+
.env.test.local
14+
.env.production.local

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
electron_mirror=https://npmmirror.com/mirrors/electron/
2+
electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
out
2+
dist
3+
pnpm-lock.yaml
4+
LICENSE.md
5+
tsconfig.json
6+
tsconfig.*.json

.prettierrc.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
singleQuote: true
2+
semi: false
3+
printWidth: 100
4+
trailingComma: none

1.png

187 KB
Loading

2.png

228 KB
Loading

0 commit comments

Comments
 (0)