TTP -> MTP, A lot of other stuff #21

Merged
alois merged 81 commits from dev into main 2026-07-21 11:57:33 +03:00
5 changed files with 25 additions and 5 deletions
Showing only changes of commit fc6d8950d4 - Show all commits

(fix): builds
Some checks failed
/ build-web (push) Successful in 6m28s
/ build-desktop (linux) (push) Failing after 7m9s
/ build-mobile (push) Failing after 11m37s
/ release (push) Has been skipped

Alois 2026-07-04 01:50:13 +02:00

View file

@ -155,7 +155,15 @@ jobs:
EOF
- name: Build Electron desktop
run: nix develop .#electron --command pnpm run build:desktop
run: |
nix develop .#electron --command bash <<'EOF'
set -euo pipefail
SEVEN_ZIP_DIR="$(mktemp -d)"
mkdir -p "$SEVEN_ZIP_DIR/bin"
ln -s "$(command -v 7za)" "$SEVEN_ZIP_DIR/bin/7za"
cd apps/electron
pnpm run package:raw -- -c.toolsets.sevenZip.url="file://$SEVEN_ZIP_DIR"
EOF
- name: Upload desktop artifacts
uses: https://data.forgejo.org/actions/upload-artifact@v3

View file

@ -154,7 +154,15 @@ jobs:
EOF
- name: Build Electron desktop
run: nix develop .#electron --command pnpm run build:desktop
run: |
nix develop .#electron --command bash <<'EOF'
set -euo pipefail
SEVEN_ZIP_DIR="$(mktemp -d)"
mkdir -p "$SEVEN_ZIP_DIR/bin"
ln -s "$(command -v 7za)" "$SEVEN_ZIP_DIR/bin/7za"
cd apps/electron
pnpm run package:raw -- -c.toolsets.sevenZip.url="file://$SEVEN_ZIP_DIR"
EOF
- name: Upload desktop artifacts
uses: https://data.forgejo.org/actions/upload-artifact@v3

View file

@ -21,9 +21,9 @@
"dev:mobile:raw": "tauri android dev --host ${TAURI_DEV_HOST:-127.0.0.1}",
"start-adb:mobile:raw": "adb devices",
"build:mobile:raw": "tauri android build",
"dev:mobile": "if command -v nix >/dev/null 2>&1; then nix develop ../..#tauri --command pnpm run dev:mobile:raw; else pnpm run dev:mobile:raw; fi",
"start-adb:mobile": "if command -v nix >/dev/null 2>&1; then nix develop ../..#tauri --command pnpm run start-adb:mobile:raw; else pnpm run start-adb:mobile:raw; fi",
"build:mobile": "node render-version.ts && if command -v nix >/dev/null 2>&1; then nix develop ../..#tauri --command pnpm run build:mobile:raw; else pnpm run build:mobile:raw; fi && node render-version.ts --unrender",
"dev:mobile": "if command -v nix >/dev/null 2>&1 && [ -z \"$IN_NIX_SHELL\" ]; then nix develop ../..#tauri --command pnpm run dev:mobile:raw; else pnpm run dev:mobile:raw; fi",
"start-adb:mobile": "if command -v nix >/dev/null 2>&1 && [ -z \"$IN_NIX_SHELL\" ]; then nix develop ../..#tauri --command pnpm run start-adb:mobile:raw; else pnpm run start-adb:mobile:raw; fi",
"build:mobile": "node render-version.ts && trap 'node render-version.ts --unrender' EXIT && if command -v nix >/dev/null 2>&1 && [ -z \"$IN_NIX_SHELL\" ]; then nix develop ../..#tauri --command pnpm run build:mobile:raw; else pnpm run build:mobile:raw; fi",
"gen-icons": "tauri icon ./logo.json && node scripts/sync-electron-icons.ts",
"format": "pnpm exec prettier --write .",
"lint": "eslint src"

View file

@ -1,9 +1,12 @@
import fs from "fs";
import path from "path";
import { fileURLToPath } from "url";
// Config
const PLACEHOLDER_VERSION = "0.0.0";
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const rootPackageJsonPath = path.resolve(__dirname, "../../package.json");
const cargoTomlPath = path.resolve(__dirname, "./src-tauri/Cargo.toml");
const tauriConfigPath = path.resolve(__dirname, "./src-tauri/tauri.conf.json");

View file

@ -233,6 +233,7 @@
fakeroot
rsync
xz
p7zip
]
++ electronRuntimeLibs ++ commonDeps;