feat: supported flatpak version v3
This commit is contained in:
44
.dockerignore
Normal file
44
.dockerignore
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
# Dependencies
|
||||||
|
**/node_modules
|
||||||
|
.pnp
|
||||||
|
.pnp.js
|
||||||
|
|
||||||
|
# Local env files
|
||||||
|
.env
|
||||||
|
.env.local
|
||||||
|
.env.development.local
|
||||||
|
.env.test.local
|
||||||
|
.env.production.local
|
||||||
|
|
||||||
|
# Testing
|
||||||
|
coverage
|
||||||
|
|
||||||
|
# Turbo
|
||||||
|
.turbo
|
||||||
|
|
||||||
|
# Vercel
|
||||||
|
.vercel
|
||||||
|
|
||||||
|
# Build Outputs
|
||||||
|
**/.next/
|
||||||
|
**/out/
|
||||||
|
**/build
|
||||||
|
**/dist
|
||||||
|
**/target
|
||||||
|
|
||||||
|
|
||||||
|
# Debug
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
.DS_Store
|
||||||
|
*.pem
|
||||||
|
|
||||||
|
# Unnecessary files
|
||||||
|
**/.git/
|
||||||
|
.github/
|
||||||
|
flatpak/*.xml
|
||||||
|
flatpak/*.desktop
|
||||||
|
flatpak/*.yml
|
||||||
9
.github/workflows/flatpak-bundle.yml
vendored
9
.github/workflows/flatpak-bundle.yml
vendored
@@ -11,6 +11,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: 'recursive'
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
- name: cache of container
|
- name: cache of container
|
||||||
@@ -51,11 +53,16 @@ jobs:
|
|||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: repo-dist
|
name: repo-dist
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: flathub/shared-modules
|
||||||
|
path: shared-modules
|
||||||
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
|
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
|
||||||
with:
|
with:
|
||||||
bundle: lume.flatpak
|
bundle: lume.flatpak
|
||||||
manifest-path: nu.lume.Lume.yml
|
manifest-path: nu.lume.Lume.yml
|
||||||
cache-key: flatpak-builder-${{ github.sha }}
|
restore-cache: false
|
||||||
|
# cache-key: flatpak-builder-${{ github.sha }}
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
|||||||
14
.gitignore
vendored
14
.gitignore
vendored
@@ -13,25 +13,23 @@ node_modules
|
|||||||
.env.production.local
|
.env.production.local
|
||||||
|
|
||||||
# Testing
|
# Testing
|
||||||
coverage
|
coverage/
|
||||||
|
|
||||||
# Turbo
|
# Turbo
|
||||||
.turbo
|
.turbo/
|
||||||
|
|
||||||
# Vercel
|
# Vercel
|
||||||
.vercel
|
.vercel/
|
||||||
|
|
||||||
# Build Outputs
|
# Build Outputs
|
||||||
.next/
|
.next/
|
||||||
out/
|
out/
|
||||||
build
|
build/
|
||||||
dist
|
dist/
|
||||||
|
|
||||||
|
|
||||||
# Debug
|
# Debug
|
||||||
npm-debug.log*
|
*.log*
|
||||||
yarn-debug.log*
|
|
||||||
yarn-error.log*
|
|
||||||
|
|
||||||
# Misc
|
# Misc
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
import { CancelIcon, PlusIcon, UserAddIcon, UserRemoveIcon } from "@lume/icons";
|
import { CancelIcon, PlusIcon, UserAddIcon, UserRemoveIcon } from "@lume/icons";
|
||||||
import { User } from "@lume/ui";
|
import { User } from "@lume/ui";
|
||||||
import * as Dialog from "@radix-ui/react-dialog";
|
import * as Dialog from "@radix-ui/react-dialog";
|
||||||
import { resolveResource } from "@tauri-apps/api/path";
|
import { resolveResource, resolve } from "@tauri-apps/api/path";
|
||||||
import { readTextFile, writeTextFile } from "@tauri-apps/plugin-fs";
|
import { readTextFile, writeTextFile } from "@tauri-apps/plugin-fs";
|
||||||
import { nip19 } from "nostr-tools";
|
import { nip19 } from "nostr-tools";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { parse, stringify } from "smol-toml";
|
import { parse, stringify } from "smol-toml";
|
||||||
import { toast } from "sonner";
|
import { toast } from "sonner";
|
||||||
|
import { VITE_FLATPAK_RESOURCE } from "@lume/utils";
|
||||||
|
|
||||||
export function DepotMembers() {
|
export function DepotMembers() {
|
||||||
const [members, setMembers] = useState<Set<string>>(null);
|
const [members, setMembers] = useState<Set<string>>(null);
|
||||||
@@ -32,7 +33,7 @@ export function DepotMembers() {
|
|||||||
const updateMembers = async () => {
|
const updateMembers = async () => {
|
||||||
setMembers(new Set(tmpMembers));
|
setMembers(new Set(tmpMembers));
|
||||||
|
|
||||||
const defaultConfig = await resolveResource("resources/config.toml");
|
const defaultConfig = VITE_FLATPAK_RESOURCE !== null ? await resolve("/",VITE_FLATPAK_RESOURCE) : await resolveResource("resources/config.toml");
|
||||||
const config = await readTextFile(defaultConfig);
|
const config = await readTextFile(defaultConfig);
|
||||||
const configContent = parse(config);
|
const configContent = parse(config);
|
||||||
|
|
||||||
@@ -46,7 +47,7 @@ export function DepotMembers() {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
async function loadConfig() {
|
async function loadConfig() {
|
||||||
const defaultConfig = await resolveResource("resources/config.toml");
|
const defaultConfig = VITE_FLATPAK_RESOURCE !== null ? await resolve("/",VITE_FLATPAK_RESOURCE) : await resolveResource("resources/config.toml");
|
||||||
const config = await readTextFile(defaultConfig);
|
const config = await readTextFile(defaultConfig);
|
||||||
const configContent = parse(config);
|
const configContent = parse(config);
|
||||||
setTmpMembers(
|
setTmpMembers(
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { useArk } from "@lume/ark";
|
import { useArk } from "@lume/ark";
|
||||||
import { LoaderIcon } from "@lume/icons";
|
import { LoaderIcon } from "@lume/icons";
|
||||||
|
import { delay, VITE_FLATPAK_RESOURCE } from "@lume/utils";
|
||||||
|
import { resolve, resolveResource } from "@tauri-apps/api/path";
|
||||||
import { useStorage } from "@lume/storage";
|
import { useStorage } from "@lume/storage";
|
||||||
import { delay } from "@lume/utils";
|
|
||||||
import { resolveResource } from "@tauri-apps/api/path";
|
|
||||||
import { readTextFile, writeTextFile } from "@tauri-apps/plugin-fs";
|
import { readTextFile, writeTextFile } from "@tauri-apps/plugin-fs";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
@@ -21,7 +21,10 @@ export function DepotOnboardingScreen() {
|
|||||||
setLoading(true);
|
setLoading(true);
|
||||||
|
|
||||||
// get default config
|
// get default config
|
||||||
const defaultConfig = await resolveResource("resources/config.toml");
|
const defaultConfig =
|
||||||
|
VITE_FLATPAK_RESOURCE !== null
|
||||||
|
? await resolve("/", VITE_FLATPAK_RESOURCE)
|
||||||
|
: await resolveResource("resources/config.toml");
|
||||||
const config = await readTextFile(defaultConfig);
|
const config = await readTextFile(defaultConfig);
|
||||||
const parsedConfig = parse(config);
|
const parsedConfig = parse(config);
|
||||||
|
|
||||||
|
|||||||
13
flatpak/0002-depot-remove.patch
Normal file
13
flatpak/0002-depot-remove.patch
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json
|
||||||
|
index 87c23e40..bb84872e 100644
|
||||||
|
--- a/src-tauri/tauri.conf.json
|
||||||
|
+++ b/src-tauri/tauri.conf.json
|
||||||
|
@@ -50,8 +50,6 @@
|
||||||
|
"deb": {
|
||||||
|
"depends": []
|
||||||
|
},
|
||||||
|
- "externalBin": ["bin/depot"],
|
||||||
|
- "resources": ["resources/*"],
|
||||||
|
"icon": [
|
||||||
|
"icons/32x32.png",
|
||||||
|
"icons/128x128.png",
|
||||||
@@ -10,6 +10,7 @@ RUN apt install libwebkit2gtk-4.1-dev -y \
|
|||||||
file \
|
file \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libayatana-appindicator3-dev \
|
libayatana-appindicator3-dev \
|
||||||
|
protobuf-compiler \
|
||||||
librsvg2-dev
|
librsvg2-dev
|
||||||
|
|
||||||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
@@ -25,41 +26,31 @@ ENV PATH="/root/.cargo/bin:${PATH}"
|
|||||||
|
|
||||||
RUN corepack enable
|
RUN corepack enable
|
||||||
|
|
||||||
ADD src /lume/src
|
ADD . /lume/.
|
||||||
ADD public /lume/public
|
|
||||||
|
|
||||||
ADD index.html \
|
|
||||||
package.json \
|
|
||||||
postcss.config.js \
|
|
||||||
tailwind.config.js \
|
|
||||||
vite.config.ts \
|
|
||||||
pnpm-lock.yaml \
|
|
||||||
tsconfig.json \
|
|
||||||
/lume
|
|
||||||
|
|
||||||
ADD src-tauri/icons /lume/src-tauri/icons
|
|
||||||
ADD src-tauri/migrations /lume/src-tauri/migrations
|
|
||||||
ADD src-tauri/src /lume/src-tauri/src
|
|
||||||
|
|
||||||
ADD src-tauri/build.rs \
|
|
||||||
src-tauri/Cargo.lock \
|
|
||||||
src-tauri/Cargo.toml \
|
|
||||||
src-tauri/tauri.conf.json \
|
|
||||||
src-tauri/tauri.linux.conf.json \
|
|
||||||
/lume/src-tauri
|
|
||||||
|
|
||||||
WORKDIR /lume
|
WORKDIR /lume
|
||||||
|
|
||||||
RUN pnpm install --frozen-lockfile
|
RUN pnpm install --frozen-lockfile
|
||||||
|
|
||||||
# Path for disable updater
|
# Path for disable updater
|
||||||
ADD flatpak/0001-disable-tauri-updater.patch .
|
#ADD flatpak/0001-disable-tauri-updater.patch .
|
||||||
RUN patch -p1 -t -i 0001-disable-tauri-updater.patch
|
#RUN patch -p1 -t -i flatpak/0001-disable-tauri-updater.patch
|
||||||
|
ADD flatpak/0002-depot-remove.patch .
|
||||||
|
RUN patch -p1 -t -i 0002-depot-remove.patch
|
||||||
|
|
||||||
|
# compile depot
|
||||||
|
|
||||||
|
#ADD flatpak/build-depot.sh build-depot.sh
|
||||||
|
#RUN mv flatpak/build-depot.sh build-depot.sh
|
||||||
|
#RUN sh build-depot.sh
|
||||||
|
#RUN pnpm run build:depot
|
||||||
|
|
||||||
|
#ENV VITE_FLATPAK_RESOURCE="/app/lib/lume/resources/config.toml"
|
||||||
|
|
||||||
# debian build
|
# debian build
|
||||||
RUN pnpm tauri build -b deb
|
RUN pnpm tauri build -b deb
|
||||||
|
|
||||||
ARG VERSION=2.2.3
|
ARG VERSION=3.0.0
|
||||||
ARG ARCH=amd64
|
ARG ARCH=amd64
|
||||||
|
|
||||||
RUN cp -r ./src-tauri/target/release/bundle/deb/lume_${VERSION}_${ARCH}/data lume-package
|
RUN cp -r ./src-tauri/target/release/bundle/deb/lume_${VERSION}_${ARCH}/data lume-package
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
# Lume nostr desktop client
|
|
||||||
[GitHub - luminous-devs/lume: A cross-platform desktop nostr client](https://github.com/luminous-devs/lume) is made with Tauri and built using [pnpm](https://pnpm.io) and [cargo](https://doc.rust-lang.org/cargo/) packages.
|
|
||||||
Lume itself has node dependencies managed with pnpm as well.
|
|
||||||
|
|
||||||
## Source generation
|
|
||||||
To transform their package locks into flatpak sources, [flatpak-builder-tools](https://github.com/flatpak/flatpak-builder-tools) is used.
|
|
||||||
|
|
||||||
```sh
|
|
||||||
# Generate cinny-desktop sources for use with cargo
|
|
||||||
<path-to flatpak-builder-tools>/cargo/flatpak-cargo-generator.py -o cargo-sources.json <path-to cinny-desktop>/src-tauri/Cargo.lock
|
|
||||||
|
|
||||||
# Generate cinny and cinny-desktop sources for use with npm
|
|
||||||
flatpak-node-generator --no-requests-cache -r -o node-sources.json npm <path-to cinny-desktop>/package-lock.json
|
|
||||||
```
|
|
||||||
15
flatpak/build-depot.sh
Normal file
15
flatpak/build-depot.sh
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
directory_bin="/lume/src-tauri/bin"
|
||||||
|
target="x86_64-unknown-linux-gnu"
|
||||||
|
|
||||||
|
cd modules/depot
|
||||||
|
|
||||||
|
check_directory_keep=$(ls $directory_bin | grep -vE '.keep$' | wc -l)
|
||||||
|
|
||||||
|
echo $(ls $directory_bin | grep -vE '.keep$')
|
||||||
|
|
||||||
|
if [ $check_directory_keep -eq 0 ]; then
|
||||||
|
cargo build --release
|
||||||
|
mv target/release/depot "$directory_bin/depot-$target"
|
||||||
|
fi
|
||||||
@@ -30,6 +30,17 @@
|
|||||||
<value key="Purism::form_factor">workstation</value>
|
<value key="Purism::form_factor">workstation</value>
|
||||||
<value key="Purism::form_factor">mobile</value>
|
<value key="Purism::form_factor">mobile</value>
|
||||||
</custom>
|
</custom>
|
||||||
|
<screenshots>
|
||||||
|
<screenshot type="default">
|
||||||
|
<image> https://raw.githubusercontent.com/kogeletey/lume-nostr/feat/package-flatpak/flatpak/screenshoots/login-screen.png </image>
|
||||||
|
</screenshot>
|
||||||
|
<screenshot>
|
||||||
|
<image>https://raw.githubusercontent.com/kogeletey/lume-nostr/feat/package-flatpak/flatpak/screenshoots/collumns.png</image>
|
||||||
|
</screenshot>
|
||||||
|
<screenshot>
|
||||||
|
<image> https://raw.githubusercontent.com/kogeletey/lume-nostr/feat/package-flatpak/flatpak/screenshoots/home-screen.png </image>
|
||||||
|
</screenshot>
|
||||||
|
</screenshots>
|
||||||
|
|
||||||
|
|
||||||
<releases>
|
<releases>
|
||||||
|
|||||||
@@ -13,13 +13,14 @@ finish-args:
|
|||||||
- --share=network
|
- --share=network
|
||||||
#- --filesystem=home
|
#- --filesystem=home
|
||||||
#- --filesystem=xdg-download
|
#- --filesystem=xdg-download
|
||||||
#- --talk-name=org.freedesktop.secrets
|
- --talk-name=org.freedesktop.secrets
|
||||||
- --talk-name=org.freedesktop.Notifications
|
- --talk-name=org.freedesktop.Notifications
|
||||||
- --talk-name=org.kde.StatusNotifierWatcher
|
- --talk-name=org.kde.StatusNotifierWatcher
|
||||||
- --filesystem=xdg-run/keyring
|
- --filesystem=xdg-run/keyring
|
||||||
- --device=dri
|
- --device=dri
|
||||||
|
|
||||||
modules:
|
modules:
|
||||||
|
- shared-modules/libappindicator/libappindicator-gtk3-12.10.json
|
||||||
- name: lume
|
- name: lume
|
||||||
sources:
|
sources:
|
||||||
- type: dir
|
- type: dir
|
||||||
@@ -31,8 +32,10 @@ modules:
|
|||||||
buildsystem: simple
|
buildsystem: simple
|
||||||
build-commands:
|
build-commands:
|
||||||
- install -Dm755 bin/lume /app/bin/lume
|
- install -Dm755 bin/lume /app/bin/lume
|
||||||
|
# - install -Dm755 bin/depot /app/bin/depot
|
||||||
|
# - mkdir -p /app/lib/lume/resources
|
||||||
|
# - cp -r lib/lume/resources /app/lib/lume/resources
|
||||||
- mkdir -p /app/share/icons/hicolor/
|
- mkdir -p /app/share/icons/hicolor/
|
||||||
- cp -r share/icons/hicolor/ /app/share/icons/
|
- cp -r share/icons/hicolor/ /app/share/icons/
|
||||||
- install -Dm644 nu.lume.Lume.appdata.xml /app/share/metainfo/nu.lume.Lume.appdata.xml
|
- install -Dm644 nu.lume.Lume.appdata.xml /app/share/metainfo/nu.lume.Lume.appdata.xml
|
||||||
- install -Dm644 nu.lume.Lume.desktop /app/share/applications/nu.lume.Lume.desktop
|
- install -Dm644 nu.lume.Lume.desktop /app/share/applications/nu.lume.Lume.desktop
|
||||||
- ls -lRa /app
|
|
||||||
|
|||||||
BIN
flatpak/screenshoots/collumns.png
Normal file
BIN
flatpak/screenshoots/collumns.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 MiB |
BIN
flatpak/screenshoots/home-screen.png
Normal file
BIN
flatpak/screenshoots/home-screen.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.5 MiB |
BIN
flatpak/screenshoots/login-screen.png
Normal file
BIN
flatpak/screenshoots/login-screen.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 606 KiB |
@@ -3,6 +3,7 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"version": "3.0.0",
|
"version": "3.0.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"build:depot": "node --max-old-space-size=4096 scripts/compile-depot.mjs",
|
||||||
"build": "turbo build",
|
"build": "turbo build",
|
||||||
"dev": "turbo dev",
|
"dev": "turbo dev",
|
||||||
"tauri": "tauri"
|
"tauri": "tauri"
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@lume/tsconfig": "workspace:*",
|
"@lume/tsconfig": "workspace:*",
|
||||||
"@lume/types": "workspace:*",
|
"@lume/types": "workspace:*",
|
||||||
|
"@lume/utils": "workspace:^",
|
||||||
"@types/react": "^18.2.48",
|
"@types/react": "^18.2.48",
|
||||||
"typescript": "^5.3.3"
|
"typescript": "^5.3.3"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,8 @@ import {
|
|||||||
NDKCacheUserProfile,
|
NDKCacheUserProfile,
|
||||||
} from "@lume/types";
|
} from "@lume/types";
|
||||||
import { invoke } from "@tauri-apps/api/core";
|
import { invoke } from "@tauri-apps/api/core";
|
||||||
import { appConfigDir, resolveResource } from "@tauri-apps/api/path";
|
import { resolve, appConfigDir, resolveResource } from "@tauri-apps/api/path";
|
||||||
|
import { VITE_FLATPAK_RESOURCE } from "@lume/utils";
|
||||||
import { Platform } from "@tauri-apps/plugin-os";
|
import { Platform } from "@tauri-apps/plugin-os";
|
||||||
import { Child, Command } from "@tauri-apps/plugin-shell";
|
import { Child, Command } from "@tauri-apps/plugin-shell";
|
||||||
import Database from "@tauri-apps/plugin-sql";
|
import Database from "@tauri-apps/plugin-sql";
|
||||||
@@ -92,7 +93,10 @@ export class LumeStorage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async launchDepot() {
|
public async launchDepot() {
|
||||||
const configPath = await resolveResource("resources/config.toml");
|
const configPath =
|
||||||
|
VITE_FLATPAK_RESOURCE !== null
|
||||||
|
? await resolve("/", VITE_FLATPAK_RESOURCE)
|
||||||
|
: await resolveResource("resources/config.toml");
|
||||||
const dataPath = await appConfigDir();
|
const dataPath = await appConfigDir();
|
||||||
|
|
||||||
const command = Command.sidecar("bin/depot", [
|
const command = Command.sidecar("bin/depot", [
|
||||||
|
|||||||
@@ -406,3 +406,5 @@ export const QUOTES = [
|
|||||||
"You can send secure messages on Nostr with https://0xchat.com/",
|
"You can send secure messages on Nostr with https://0xchat.com/",
|
||||||
"Are you a fan of following topics, instead of people? Use https://zapddit.com",
|
"Are you a fan of following topics, instead of people? Use https://zapddit.com",
|
||||||
];
|
];
|
||||||
|
|
||||||
|
export const VITE_FLATPAK_RESOURCE = import.meta.env.VITE_FLATPAK_RESOURCE;
|
||||||
|
|||||||
542
pnpm-lock.yaml
generated
542
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,124 +1,119 @@
|
|||||||
{
|
{
|
||||||
"$schema": "../node_modules/@tauri-apps/cli/schema.json",
|
"$schema": "../apps/desktop/node_modules/@tauri-apps/cli/schema.json",
|
||||||
"build": {
|
"build": {
|
||||||
"beforeBuildCommand": "pnpm run build",
|
"beforeBuildCommand": "pnpm run build",
|
||||||
"beforeDevCommand": "pnpm run dev",
|
"beforeDevCommand": "pnpm run dev",
|
||||||
"devPath": "http://localhost:3000",
|
"devPath": "http://localhost:3000",
|
||||||
"distDir": "../dist",
|
"distDir": "../dist",
|
||||||
"withGlobalTauri": true
|
"withGlobalTauri": true
|
||||||
},
|
},
|
||||||
"package": {
|
"package": {
|
||||||
"productName": "Lume 3",
|
"productName": "Lume",
|
||||||
"version": "3.0.0"
|
"version": "3.0.0"
|
||||||
},
|
},
|
||||||
"plugins": {
|
"plugins": {
|
||||||
"fs": {
|
"fs": {
|
||||||
"scope": [
|
"scope": [
|
||||||
"$APPDATA/*",
|
"$APPDATA/*",
|
||||||
"$DATA/*",
|
"$DATA/*",
|
||||||
"$LOCALDATA/*",
|
"$LOCALDATA/*",
|
||||||
"$DESKTOP/*",
|
"$DESKTOP/*",
|
||||||
"$DOCUMENT/*",
|
"$DOCUMENT/*",
|
||||||
"$DOWNLOAD/*",
|
"$DOWNLOAD/*",
|
||||||
"$HOME/*",
|
"$HOME/*",
|
||||||
"$PICTURE/*",
|
"$PICTURE/*",
|
||||||
"$PUBLIC/*",
|
"$PUBLIC/*",
|
||||||
"$VIDEO/*",
|
"$VIDEO/*",
|
||||||
"$RESOURCE",
|
"$RESOURCE",
|
||||||
"$RESOURCE/*",
|
"$RESOURCE/*",
|
||||||
"$RESOURCE/**"
|
"$RESOURCE/**"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"http": {
|
"http": {
|
||||||
"scope": ["http://**/", "https://**/"]
|
"scope": ["http://**/", "https://**/"]
|
||||||
},
|
},
|
||||||
"shell": {
|
"shell": {
|
||||||
"open": true,
|
"open": true,
|
||||||
"scope": [{ "name": "bin/depot", "sidecar": true, "args": true }]
|
"scope": [{ "name": "bin/depot", "sidecar": true, "args": true }]
|
||||||
},
|
},
|
||||||
"updater": {
|
"updater": {
|
||||||
"endpoints": [
|
"endpoints": [
|
||||||
"https://lus.reya3772.workers.dev/v1/{{target}}/{{arch}}/{{current_version}}",
|
"https://lus.reya3772.workers.dev/v1/{{target}}/{{arch}}/{{current_version}}",
|
||||||
"https://lus.reya3772.workers.dev/{{target}}/{{current_version}}"
|
"https://lus.reya3772.workers.dev/{{target}}/{{current_version}}"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tauri": {
|
"tauri": {
|
||||||
"bundle": {
|
"bundle": {
|
||||||
"active": true,
|
"active": true,
|
||||||
"category": "SocialNetworking",
|
"category": "SocialNetworking",
|
||||||
"deb": {
|
"deb": {
|
||||||
"depends": []
|
"depends": []
|
||||||
},
|
},
|
||||||
"externalBin": [],
|
"externalBin": ["bin/depot"],
|
||||||
"resources": ["resources/*"],
|
"resources": ["resources/*"],
|
||||||
"icon": [
|
"icon": [
|
||||||
"icons/32x32.png",
|
"icons/32x32.png",
|
||||||
"icons/128x128.png",
|
"icons/128x128.png",
|
||||||
"icons/128x128@2x.png",
|
"icons/128x128@2x.png",
|
||||||
"icons/icon.icns",
|
"icons/icon.icns",
|
||||||
"icons/icon.ico"
|
"icons/icon.ico"
|
||||||
],
|
],
|
||||||
"copyright": "",
|
"copyright": "",
|
||||||
"identifier": "nu.lume",
|
"identifier": "nu.lume.Lume",
|
||||||
"longDescription": "nostr client for desktop",
|
"longDescription": "nostr client for desktop",
|
||||||
"shortDescription": "",
|
"shortDescription": "",
|
||||||
"targets": "all",
|
"targets": "all",
|
||||||
"updater": {
|
"updater": {
|
||||||
"active": true,
|
"active": true,
|
||||||
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEU3OTdCMkM3RjU5QzE2NzkKUldSNUZwejF4N0tYNTVHYjMrU0JkL090SlEyNUVLYU5TM2hTU3RXSWtEWngrZWJ4a0pydUhXZHEK",
|
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEU3OTdCMkM3RjU5QzE2NzkKUldSNUZwejF4N0tYNTVHYjMrU0JkL090SlEyNUVLYU5TM2hTU3RXSWtEWngrZWJ4a0pydUhXZHEK",
|
||||||
"windows": {
|
"windows": {
|
||||||
"installMode": "quiet"
|
"installMode": "quiet"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"appimage": {
|
"appimage": {
|
||||||
"bundleMediaFramework": true
|
"bundleMediaFramework": true
|
||||||
},
|
},
|
||||||
"rpm": {
|
"macOS": {
|
||||||
"epoch": 0,
|
"entitlements": null,
|
||||||
"files": {},
|
"exceptionDomain": "",
|
||||||
"release": "1"
|
"frameworks": [],
|
||||||
},
|
"license": "../LICENSE",
|
||||||
"macOS": {
|
"minimumSystemVersion": "10.15.0",
|
||||||
"entitlements": null,
|
"providerShortName": null,
|
||||||
"exceptionDomain": "",
|
"signingIdentity": null
|
||||||
"frameworks": [],
|
},
|
||||||
"license": "../LICENSE",
|
"windows": {
|
||||||
"minimumSystemVersion": "10.15.0",
|
"certificateThumbprint": null,
|
||||||
"providerShortName": null,
|
"digestAlgorithm": "sha256",
|
||||||
"signingIdentity": null
|
"timestampUrl": ""
|
||||||
},
|
}
|
||||||
"windows": {
|
},
|
||||||
"certificateThumbprint": null,
|
"security": {
|
||||||
"digestAlgorithm": "sha256",
|
"assetProtocol": {
|
||||||
"timestampUrl": ""
|
"enable": true,
|
||||||
}
|
"scope": [
|
||||||
},
|
"$APPDATA/*",
|
||||||
"security": {
|
"$DATA/*",
|
||||||
"assetProtocol": {
|
"$LOCALDATA/*",
|
||||||
"enable": true,
|
"$DESKTOP/*",
|
||||||
"scope": [
|
"$DOCUMENT/*",
|
||||||
"$APPDATA/*",
|
"$DOWNLOAD/*",
|
||||||
"$DATA/*",
|
"$HOME/*",
|
||||||
"$LOCALDATA/*",
|
"$PICTURE/*",
|
||||||
"$DESKTOP/*",
|
"$PUBLIC/*",
|
||||||
"$DOCUMENT/*",
|
"$VIDEO/*",
|
||||||
"$DOWNLOAD/*",
|
"$APPCONFIG/*",
|
||||||
"$HOME/*",
|
"$RESOURCE/*"
|
||||||
"$PICTURE/*",
|
]
|
||||||
"$PUBLIC/*",
|
},
|
||||||
"$VIDEO/*",
|
"dangerousDisableAssetCspModification": false,
|
||||||
"$APPCONFIG/*",
|
"dangerousRemoteDomainIpcAccess": [],
|
||||||
"$RESOURCE/*"
|
"freezePrototype": false
|
||||||
]
|
},
|
||||||
},
|
"trayIcon": {
|
||||||
"dangerousDisableAssetCspModification": false,
|
"iconPath": "icons/tray.png"
|
||||||
"dangerousRemoteDomainIpcAccess": [],
|
},
|
||||||
"freezePrototype": false
|
"macOSPrivateApi": true
|
||||||
},
|
}
|
||||||
"trayIcon": {
|
|
||||||
"iconPath": "icons/tray.png"
|
|
||||||
},
|
|
||||||
"macOSPrivateApi": true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user