Skip to content

Commit 3420565

Browse files
committed
the great refactor -- cut index.html up into multiple atomic files
also does a lot more than that but this has been in my workspace for over a year and a half and i have not been committing it
1 parent 4655106 commit 3420565

27 files changed

Lines changed: 8069 additions & 4863 deletions

‎.github/workflows/node.js.yml‎

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Node.js CI
55

66
on:
77
push:
8-
branches: [ "master" ]
8+
branches: [ "test" ]
99
pull_request:
10-
branches: [ "master" ]
10+
branches: [ "test" ]
1111

1212
jobs:
1313
build:
@@ -29,24 +29,38 @@ jobs:
2929
- run: npm ci
3030
- run: sudo apt-get update
3131
- run: sudo apt-get install -y wine64
32-
- run: npm i electron-packager@15.5.1 -g
33-
- run: electron-packager . --platform win32 --arch x64 --icon './dtabs.ico'
34-
- run: electron-packager . --platform darwin --arch x64 --icon './dtabs.ico'
35-
- run: electron-packager . --platform linux --arch x64 --icon './dtabs.ico'
32+
33+
- run: npm run build
34+
- run: ./ci.sh
35+
- run: npx @electron/packager build --platform win32 --arch x64 --icon './dtabs.ico'
36+
- run: npx @electron/packager build --platform darwin --arch x64 --icon './dtabs.icns'
37+
- run: npx @electron/packager build --platform darwin --arch arm64 --icon './dtabs.icns'
38+
- run: npx @electron/packager build --platform linux --arch x64 --icon './dtabs.ico'
39+
- run: npx @electron/packager build --platform linux --arch arm64 --icon './dtabs.ico'
3640

3741
- name: Upload a Build Artifact
38-
uses: actions/upload-artifact@v3.1.0
42+
uses: actions/upload-artifact@v4
3943
with:
40-
name: DTabs_windows_${{github.ref_name}}_${{github.sha}}
44+
name: DTabs_windows_x64_${{github.ref_name}}_${{github.sha}}
4145
path: ./DTabs-win32-x64
4246
- name: Upload a Build Artifact
43-
uses: actions/upload-artifact@v3.1.0
47+
uses: actions/upload-artifact@v4
4448
with:
45-
name: DTabs_macos_${{github.ref_name}}_${{github.sha}}
49+
name: DTabs_macos_x64_${{github.ref_name}}_${{github.sha}}
4650
path: ./DTabs-darwin-x64
4751
- name: Upload a Build Artifact
48-
uses: actions/upload-artifact@v3.1.0
52+
uses: actions/upload-artifact@v4
53+
with:
54+
name: DTabs_macos_arm_${{github.ref_name}}_${{github.sha}}
55+
path: ./DTabs-darwin-arm64
56+
- name: Upload a Build Artifact
57+
uses: actions/upload-artifact@v4
4958
with:
50-
name: DTabs_linux_${{github.ref_name}}_${{github.sha}}
59+
name: DTabs_linux_x86_${{github.ref_name}}_${{github.sha}}
5160
path: ./DTabs-linux-x64
61+
- name: Upload a Build Artifact
62+
uses: actions/upload-artifact@v4
63+
with:
64+
name: DTabs_linux_arm_${{github.ref_name}}_${{github.sha}}
65+
path: ./DTabs-linux-arm64
5266

‎.gitignore‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
node_modules
22
out
33
DTabs-*
4+
webview-preload.js
5+
dist/*
6+
!dist/index.packed.js
7+
!dist/index.packed.js.map

‎ci.sh‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
mkdir build
2+
mkdir build/dist
3+
cp dist/index.packed.js build/dist/index.packed.js
4+
cp ./* build/
5+
rm build/ci.sh
6+
rm build/tsconfig.json
7+
rm build/dtabs-icon.png
8+
rm build/dtabs.icns
9+
rm build/dtabs.ico
10+
ln -s ../node_modules build/node_modules

0 commit comments

Comments
 (0)