Started flatpak

This commit is contained in:
WardPearce
2024-10-24 15:38:22 +13:00
parent 68677bab7e
commit 6745232064
4 changed files with 66 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
.flatpak-builder
+61
View File
@@ -0,0 +1,61 @@
{
"app-id": "us.materialio.app",
"runtime": "org.freedesktop.Platform",
"runtime-version": "23.08",
"sdk": "org.freedesktop.Sdk",
"base": "org.electronjs.Electron2.BaseApp",
"base-version": "23.08",
"command": "./app/materialious",
"finish-args": [
"--share=network",
"--socket=x11",
"--socket=wayland",
"--device=all",
"--share=ipc",
"--share=home",
"--talk-name=org.freedesktop.Flatpak",
"--talk-name=org.freedesktop.portal.Desktop"
],
"sdk-extensions": [
"org.freedesktop.Sdk.Extension.node18"
],
"build-options": {
"append-path": "/usr/lib/sdk/node18/bin"
},
"modules": [
{
"name": "nodejs",
"buildsystem": "simple",
"build-commands": [
"cd ./materialious",
"npm install",
"npm run build",
"npx cap sync @capacitor-community/electron",
"cd ./electron",
"python patch_capacitor_plugin.py",
"npm install",
"npm run electron:make"
],
"sources": [
{
"type": "git",
"url": "https://github.com/Materialious/Materialious.git",
"tag": "main"
}
]
},
{
"name": "materialious",
"buildsystem": "simple",
"build-commands": [
"cp -r ./materialious/electron/dist/linux-unpacked /app/"
],
"sources": [
{
"type": "path",
"path": "dist"
}
]
}
]
}
-1
View File
@@ -21,7 +21,6 @@
},
"dependencies": {
"@capacitor-community/electron": "^5.0.0",
"capacitor-nodejs": "https://github.com/EdenwareApps/Capacitor-NodeJS/releases/download/v1.0.0-beta.7/capacitor6-nodejs.tgz",
"chokidar": "~3.6.0",
"electron-is-dev": "~2.0.0",
"electron-serve": "~1.1.0",
+4 -2
View File
@@ -89,7 +89,9 @@
id="search-box"
placeholder={$_('searchPlaceholder')}
bind:value={search}
on:click={() => (showSearchBox = true)}
on:click={async () => {
showSearchBox = true;
}}
/>
{#if showSearchBox}
<menu class="min suggestions-container">
@@ -98,7 +100,7 @@
<input
placeholder={$_('searchPlaceholder')}
type="text"
autofocus={true}
autofocus
required
bind:value={search}
on:keydown={handleKeyDown}