This commit is contained in:
Jan-Henrik 2025-12-08 00:21:31 +01:00
parent 044c7f4906
commit 855a472293
19 changed files with 2779 additions and 8 deletions

View file

@ -71,6 +71,9 @@ jobs:
for file in out/make/zip/darwin/**/*.zip; do
gh release upload ${{ needs.draft-release.outputs.tag-name }} "$file" --clobber
done
for file in out/make/dmg/darwin/**/*.dmg; do
gh release upload ${{ needs.draft-release.outputs.tag-name }} "$file" --clobber
done
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -2,6 +2,7 @@ module.exports = {
packagerConfig: {
asar: true,
executableName: 'respira',
icon: './public/icons/icon'
},
rebuildConfig: {},
makers: [
@ -9,19 +10,30 @@ module.exports = {
name: '@electron-forge/maker-squirrel',
config: {
name: 'Respira',
setupIcon: './public/icons/icon.ico'
},
},
{
name: '@electron-forge/maker-zip',
platforms: ['darwin'],
platforms: ['darwin']
},
{
name: '@electron-forge/maker-dmg',
config: {
icon: './public/icons/icon.icns'
}
},
{
name: '@electron-forge/maker-deb',
config: {},
config: {
icon: './public/icons/256x256.png'
},
},
{
name: '@electron-forge/maker-rpm',
config: {},
config: {
icon: './public/icons/256x256.png'
},
},
],
plugins: [

View file

@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="/icon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Respira</title>
</head>

2723
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -15,7 +15,8 @@
"preview": "vite preview",
"start": "electron-forge start",
"package": "electron-forge package",
"make": "electron-forge make"
"make": "electron-forge make",
"icons": "electron-icon-builder --input=./public/icons/icon.png --output=./public -f"
},
"dependencies": {
"@heroicons/react": "^2.2.0",
@ -33,6 +34,7 @@
"devDependencies": {
"@electron-forge/cli": "^7.10.2",
"@electron-forge/maker-deb": "^7.10.2",
"@electron-forge/maker-dmg": "^7.10.2",
"@electron-forge/maker-rpm": "^7.10.2",
"@electron-forge/maker-squirrel": "^7.10.2",
"@electron-forge/maker-zip": "^7.10.2",
@ -45,6 +47,7 @@
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.1",
"electron": "^39.2.6",
"electron-icon-builder": "^2.0.1",
"eslint": "^9.39.1",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.4.24",

35
public/icon.svg Normal file
View file

@ -0,0 +1,35 @@
<svg width="256" height="256" viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg">
<title>Embroidery Machine Controller Icon</title>
<circle cx="128" cy="128" r="128" fill="#2563eb"/>
<circle cx="128" cy="128" r="120" fill="none" stroke="white" stroke-width="8"/>
<path d="M110 178 L118 190 L138 190 L146 178 L142 166 L114 166 Z" fill="black" transform="rotate(45, 128, 178)"/>
<path d="M110 178 L118 190 L138 190 L146 178 L142 166 L114 166 Z" fill="black" transform="rotate(0, 128, 178)"/>
<path d="M110 178 L118 190 L138 190 L146 178 L142 166 L114 166 Z" fill="black" transform="rotate(90, 128, 178)"/>
<path d="M110 178 L118 190 L138 190 L146 178 L142 166 L114 166 Z" fill="black" transform="rotate(135, 128, 178)"/>
<circle cx="128" cy="178" r="18" fill="black"/>
<rect x="100" y="160" width="56" height="36" rx="4" ry="4" fill="white" stroke="black" stroke-width="2"/>
<line x1="105" y1="170" x2="151" y2="170" stroke="black" stroke-width="1.5"/>
<line x1="105" y1="176" x2="151" y2="176" stroke="black" stroke-width="1.5"/>
<line x1="105" y1="182" x2="151" y2="182" stroke="black" stroke-width="1.5"/>
<line x1="105" y1="188" x2="151" y2="188" stroke="black" stroke-width="1.5"/>
<rect x="125" y="60" width="6" height="120" rx="3" ry="3" fill="white"/>
<circle cx="128" cy="65" r="4" fill="white"/>
<circle cx="128" cy="175" r="3" fill="white"/>
<path d="M128 60
C 180 80, 180 120, 128 140
M128 100
C 160 110, 160 130, 128 140
M128 100
C 80 80, 80 120, 128 140"
fill="none"
stroke="white"
stroke-width="8"
stroke-linecap="round"
stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
public/icons/1024x1024.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
public/icons/128x128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

BIN
public/icons/16x16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 707 B

BIN
public/icons/24x24.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
public/icons/256x256.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
public/icons/32x32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
public/icons/48x48.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
public/icons/512x512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
public/icons/64x64.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4 KiB

BIN
public/icons/icon.icns Normal file

Binary file not shown.

BIN
public/icons/icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 KiB

BIN
public/icons/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

View file

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>

Before

Width:  |  Height:  |  Size: 1.5 KiB