Merge pull request #239 from WardPearce/update/electron-prod
Added electron workflow
This commit is contained in:
@@ -66,8 +66,8 @@ jobs:
|
||||
id: changelog
|
||||
uses: ardalanamini/auto-changelog@v3
|
||||
with:
|
||||
mention-authors: true
|
||||
mention-new-contributors: true
|
||||
mention-authors: false
|
||||
mention-new-contributors: false
|
||||
include-compare: false
|
||||
semver: false
|
||||
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
name: Build desktop
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
desktop-build:
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [18]
|
||||
runtime:
|
||||
- linux-x64
|
||||
- linux-armv7l
|
||||
- linux-arm64
|
||||
- win-x64
|
||||
- win-arm64
|
||||
- osx-x64
|
||||
|
||||
include:
|
||||
- runtime: linux-x64
|
||||
os: ubuntu-latest
|
||||
|
||||
- runtime: linux-armv7l
|
||||
os: ubuntu-latest
|
||||
|
||||
- runtime: linux-arm64
|
||||
os: ubuntu-latest
|
||||
|
||||
- runtime: osx-x64
|
||||
os: macOS-latest
|
||||
|
||||
- runtime: win-x64
|
||||
os: windows-latest
|
||||
|
||||
- runtime: win-arm64
|
||||
os: windows-latest
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Install modules
|
||||
run: cd ./materialious && npm install
|
||||
|
||||
- name: Build package
|
||||
run: cd ./materialious && npm run build
|
||||
|
||||
- name: Sync electron package
|
||||
run: cd ./materialious && npx cap sync @capacitor-community/electron
|
||||
|
||||
- name: Install electron modules
|
||||
run: cd ./materialious/electron && npm install
|
||||
|
||||
- name: Install required system packages
|
||||
run: apt-get install -y libxcrypt-dev
|
||||
|
||||
- name: Build desktop packages
|
||||
run: cd ./materialious/electron && npm run electron:make
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 142 KiB After Width: | Height: | Size: 18 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 121 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 159 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 12 KiB |
@@ -1,8 +1,9 @@
|
||||
{
|
||||
"appId": "com.yourdoamnin.yourapp",
|
||||
"appId": "us.materialio.app",
|
||||
"directories": {
|
||||
"buildResources": "resources"
|
||||
},
|
||||
"icon": "../static/icon512_maskable.png",
|
||||
"files": [
|
||||
"assets/**/*",
|
||||
"build/**/*",
|
||||
@@ -22,7 +23,35 @@
|
||||
"icon": "assets/appIcon.ico"
|
||||
},
|
||||
"mac": {
|
||||
"category": "your.app.category.type",
|
||||
"category": "Entertainment",
|
||||
"target": "dmg"
|
||||
},
|
||||
"linux": {
|
||||
"target": [
|
||||
"deb",
|
||||
"zip",
|
||||
"7z",
|
||||
"rpm",
|
||||
"AppImage"
|
||||
],
|
||||
"category": "AudioVideo"
|
||||
},
|
||||
"rpm": {
|
||||
"fpm": [
|
||||
"--rpm-rpmbuild-define=_build_id_links none"
|
||||
]
|
||||
},
|
||||
"deb": {
|
||||
"depends": [
|
||||
"libgtk-3-0",
|
||||
"libnotify4",
|
||||
"libnss3",
|
||||
"libxss1",
|
||||
"libxtst6",
|
||||
"xdg-utils",
|
||||
"libatspi2.0-0",
|
||||
"libuuid1",
|
||||
"libsecret-1-0"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,14 +1,14 @@
|
||||
{
|
||||
"name": "Materialious",
|
||||
"version": "1.0.0",
|
||||
"description": "An Amazing Capacitor App",
|
||||
"description": "Modern material design for Invidious.",
|
||||
"author": {
|
||||
"name": "",
|
||||
"email": ""
|
||||
"name": "Ward Pearce",
|
||||
"email": "wardpearce@pm.me"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": ""
|
||||
"url": "https://github.com/WardPearce/Materialious"
|
||||
},
|
||||
"license": "MIT",
|
||||
"main": "build/src/index.js",
|
||||
@@ -21,6 +21,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@capacitor-community/electron": "^5.0.0",
|
||||
"@types/node": "^16.18.71",
|
||||
"chokidar": "~3.5.3",
|
||||
"electron-is-dev": "~2.0.0",
|
||||
"electron-serve": "~1.1.0",
|
||||
@@ -38,4 +39,4 @@
|
||||
"capacitor",
|
||||
"electron"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,10 @@
|
||||
{
|
||||
"compileOnSave": true,
|
||||
"include": ["./src/**/*", "./capacitor.config.ts", "./capacitor.config.js"],
|
||||
"include": [
|
||||
"./src/**/*",
|
||||
"./capacitor.config.ts",
|
||||
"./capacitor.config.js"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"outDir": "./build",
|
||||
"importHelpers": true,
|
||||
@@ -8,8 +12,11 @@
|
||||
"module": "CommonJS",
|
||||
"moduleResolution": "node",
|
||||
"esModuleInterop": true,
|
||||
"typeRoots": ["./node_modules/@types"],
|
||||
"typeRoots": [
|
||||
"./node_modules/@types"
|
||||
],
|
||||
"allowJs": true,
|
||||
"rootDir": "."
|
||||
"rootDir": ".",
|
||||
"skipLibCheck": true
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+11
-1552
File diff suppressed because it is too large
Load Diff
@@ -24,7 +24,6 @@
|
||||
"@typescript-eslint/eslint-plugin": "^7.8.0",
|
||||
"@typescript-eslint/parser": "^7.7.1",
|
||||
"@vite-pwa/sveltekit": "^0.4.0",
|
||||
"electron-builder": "^24.13.3",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-svelte": "^2.38.0",
|
||||
|
||||
Reference in New Issue
Block a user