Merge pull request #5732 from DistractionRectangle/refactor/linux-build-process
Refactor/linux build process
This commit is contained in:
commit
5b01d0c196
@ -1,24 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
make clean
|
|
||||||
|
|
||||||
# To reproduce https://github.com/menloresearch/jan/pull/5463
|
|
||||||
TAURI_TOOLKIT_PATH="${XDG_CACHE_HOME:-$HOME/.cache}/tauri"
|
|
||||||
mkdir -p "$TAURI_TOOLKIT_PATH"
|
|
||||||
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/1-alpha-20250213-2/linuxdeploy-x86_64.AppImage -O "$TAURI_TOOLKIT_PATH/linuxdeploy-x86_64.AppImage"
|
|
||||||
chmod +x "$TAURI_TOOLKIT_PATH/linuxdeploy-x86_64.AppImage"
|
|
||||||
|
|
||||||
jq '.bundle.resources = ["resources/pre-install/**/*"] | .bundle.externalBin = ["binaries/cortex-server", "resources/bin/uv"]' ./src-tauri/tauri.conf.json > /tmp/tauri.conf.json
|
|
||||||
mv /tmp/tauri.conf.json ./src-tauri/tauri.conf.json
|
|
||||||
|
|
||||||
make build-tauri
|
|
||||||
|
|
||||||
cp ./src-tauri/resources/bin/bun ./src-tauri/target/release/bundle/appimage/Jan.AppDir/usr/bin/bun
|
|
||||||
mkdir -p ./src-tauri/target/release/bundle/appimage/Jan.AppDir/usr/lib/Jan/binaries/engines
|
|
||||||
cp -f ./src-tauri/binaries/deps/*.so* ./src-tauri/target/release/bundle/appimage/Jan.AppDir/usr/lib/Jan/binaries/
|
|
||||||
cp -f ./src-tauri/binaries/*.so* ./src-tauri/target/release/bundle/appimage/Jan.AppDir/usr/lib/Jan/binaries/
|
|
||||||
cp -rf ./src-tauri/binaries/engines ./src-tauri/target/release/bundle/appimage/Jan.AppDir/usr/lib/Jan/binaries/
|
|
||||||
APP_IMAGE=./src-tauri/target/release/bundle/appimage/$(ls ./src-tauri/target/release/bundle/appimage/ | grep AppImage | head -1)
|
|
||||||
echo $APP_IMAGE
|
|
||||||
rm -f $APP_IMAGE
|
|
||||||
/opt/bin/appimagetool ./src-tauri/target/release/bundle/appimage/Jan.AppDir $APP_IMAGE
|
|
||||||
@ -14,7 +14,3 @@ sudo apt install -yqq libwebkit2gtk-4.1-dev \
|
|||||||
librsvg2-dev \
|
librsvg2-dev \
|
||||||
xdg-utils \
|
xdg-utils \
|
||||||
libfuse2
|
libfuse2
|
||||||
|
|
||||||
sudo mkdir -p /opt/bin
|
|
||||||
sudo wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O /opt/bin/appimagetool
|
|
||||||
sudo chmod +x /opt/bin/appimagetool
|
|
||||||
@ -104,20 +104,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "Version: ${{ inputs.new_version }}"
|
echo "Version: ${{ inputs.new_version }}"
|
||||||
# Update tauri.conf.json
|
# Update tauri.conf.json
|
||||||
jq --arg version "${{ inputs.new_version }}" '.version = $version | .bundle.createUpdaterArtifacts = true | .bundle.resources = ["resources/pre-install/**/*"] | .bundle.externalBin = ["binaries/cortex-server", "resources/bin/uv"]' ./src-tauri/tauri.conf.json > /tmp/tauri.conf.json
|
jq --arg version "${{ inputs.new_version }}" '.version = $version | .bundle.createUpdaterArtifacts = true' ./src-tauri/tauri.conf.json > /tmp/tauri.conf.json
|
||||||
mv /tmp/tauri.conf.json ./src-tauri/tauri.conf.json
|
mv /tmp/tauri.conf.json ./src-tauri/tauri.conf.json
|
||||||
if [ "${{ inputs.channel }}" != "stable" ]; then
|
if [ "${{ inputs.channel }}" != "stable" ]; then
|
||||||
jq '.bundle.linux.deb.files = {"usr/bin/bun": "resources/bin/bun",
|
jq '.bundle.linux.deb.files = {"usr/bin/bun": "resources/bin/bun",
|
||||||
"usr/lib/Jan-${{ inputs.channel }}/binaries": "binaries/deps",
|
"usr/lib/Jan-${{ inputs.channel }}/binaries": "binaries/deps",
|
||||||
"usr/lib/Jan-${{ inputs.channel }}/binaries/engines": "binaries/engines",
|
"usr/lib/Jan-${{ inputs.channel }}/binaries/engines": "binaries/engines",
|
||||||
"usr/lib/Jan-${{ inputs.channel }}/binaries/libvulkan.so": "binaries/libvulkan.so"}' ./src-tauri/tauri.conf.json > /tmp/tauri.conf.json
|
"usr/lib/Jan-${{ inputs.channel }}/binaries/libvulkan.so": "binaries/libvulkan.so"}' ./src-tauri/tauri.linux.conf.json > /tmp/tauri.linux.conf.json
|
||||||
else
|
mv /tmp/tauri.linux.conf.json ./src-tauri/tauri.linux.conf.json
|
||||||
jq '.bundle.linux.deb.files = {"usr/bin/bun": "resources/bin/bun",
|
|
||||||
"usr/lib/Jan/binaries": "binaries/deps",
|
|
||||||
"usr/lib/Jan/binaries/engines": "binaries/engines",
|
|
||||||
"usr/lib/Jan/binaries/libvulkan.so": "binaries/libvulkan.so"}' ./src-tauri/tauri.conf.json > /tmp/tauri.conf.json
|
|
||||||
fi
|
fi
|
||||||
mv /tmp/tauri.conf.json ./src-tauri/tauri.conf.json
|
|
||||||
jq --arg version "${{ inputs.new_version }}" '.version = $version' web-app/package.json > /tmp/package.json
|
jq --arg version "${{ inputs.new_version }}" '.version = $version' web-app/package.json > /tmp/package.json
|
||||||
mv /tmp/package.json web-app/package.json
|
mv /tmp/package.json web-app/package.json
|
||||||
|
|
||||||
@ -150,48 +145,16 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
- name: Build app
|
- name: Build app
|
||||||
run: |
|
run: |
|
||||||
# Pin linuxdeploy version to prevent @tauri-apps/cli-linux-x64-gnu from pulling in an outdated version
|
|
||||||
TAURI_TOOLKIT_PATH="${XDG_CACHE_HOME:-$HOME/.cache}/tauri"
|
|
||||||
mkdir -p "$TAURI_TOOLKIT_PATH"
|
|
||||||
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/1-alpha-20250213-2/linuxdeploy-x86_64.AppImage -O "$TAURI_TOOLKIT_PATH/linuxdeploy-x86_64.AppImage"
|
|
||||||
chmod +x "$TAURI_TOOLKIT_PATH/linuxdeploy-x86_64.AppImage"
|
|
||||||
|
|
||||||
make build-tauri
|
make build-tauri
|
||||||
# Copy engines and bun to appimage
|
|
||||||
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O ./appimagetool
|
APP_IMAGE=./src-tauri/target/release/bundle/appimage/$(ls ./src-tauri/target/release/bundle/appimage/ | grep AppImage | head -1)
|
||||||
chmod +x ./appimagetool
|
yarn tauri signer sign \
|
||||||
if [ "${{ inputs.channel }}" != "stable" ]; then
|
--private-key "$TAURI_SIGNING_PRIVATE_KEY" \
|
||||||
ls ./src-tauri/target/release/bundle/appimage/
|
--password "$TAURI_SIGNING_PRIVATE_KEY_PASSWORD" \
|
||||||
cp ./src-tauri/resources/bin/bun ./src-tauri/target/release/bundle/appimage/Jan-${{ inputs.channel }}.AppDir/usr/bin/bun
|
"$APP_IMAGE"
|
||||||
mkdir -p ./src-tauri/target/release/bundle/appimage/Jan-${{ inputs.channel }}.AppDir/usr/lib/Jan-${{ inputs.channel }}/binaries/engines
|
|
||||||
cp -f ./src-tauri/binaries/deps/*.so* ./src-tauri/target/release/bundle/appimage/Jan-${{ inputs.channel }}.AppDir/usr/lib/Jan-${{ inputs.channel }}/binaries/
|
|
||||||
cp -f ./src-tauri/binaries/*.so* ./src-tauri/target/release/bundle/appimage/Jan-${{ inputs.channel }}.AppDir/usr/lib/Jan-${{ inputs.channel }}/binaries/
|
|
||||||
cp -rf ./src-tauri/binaries/engines ./src-tauri/target/release/bundle/appimage/Jan-${{ inputs.channel }}.AppDir/usr/lib/Jan-${{ inputs.channel }}/binaries/
|
|
||||||
APP_IMAGE=./src-tauri/target/release/bundle/appimage/$(ls ./src-tauri/target/release/bundle/appimage/ | grep .AppImage | head -1)
|
|
||||||
echo $APP_IMAGE
|
|
||||||
rm -f $APP_IMAGE
|
|
||||||
./appimagetool ./src-tauri/target/release/bundle/appimage/Jan-${{ inputs.channel }}.AppDir $APP_IMAGE
|
|
||||||
yarn tauri signer sign \
|
|
||||||
--private-key "$TAURI_SIGNING_PRIVATE_KEY" \
|
|
||||||
--password "$TAURI_SIGNING_PRIVATE_KEY_PASSWORD" \
|
|
||||||
"$APP_IMAGE"
|
|
||||||
else
|
|
||||||
cp ./src-tauri/resources/bin/bun ./src-tauri/target/release/bundle/appimage/Jan.AppDir/usr/bin/bun
|
|
||||||
mkdir -p ./src-tauri/target/release/bundle/appimage/Jan.AppDir/usr/lib/Jan/binaries/engines
|
|
||||||
cp -f ./src-tauri/binaries/deps/*.so* ./src-tauri/target/release/bundle/appimage/Jan.AppDir/usr/lib/Jan/binaries/
|
|
||||||
cp -f ./src-tauri/binaries/*.so* ./src-tauri/target/release/bundle/appimage/Jan.AppDir/usr/lib/Jan/binaries/
|
|
||||||
cp -rf ./src-tauri/binaries/engines ./src-tauri/target/release/bundle/appimage/Jan.AppDir/usr/lib/Jan/binaries/
|
|
||||||
APP_IMAGE=./src-tauri/target/release/bundle/appimage/$(ls ./src-tauri/target/release/bundle/appimage/ | grep AppImage | head -1)
|
|
||||||
echo $APP_IMAGE
|
|
||||||
rm -f $APP_IMAGE
|
|
||||||
./appimagetool ./src-tauri/target/release/bundle/appimage/Jan.AppDir $APP_IMAGE
|
|
||||||
yarn tauri signer sign \
|
|
||||||
--private-key "$TAURI_SIGNING_PRIVATE_KEY" \
|
|
||||||
--password "$TAURI_SIGNING_PRIVATE_KEY_PASSWORD" \
|
|
||||||
"$APP_IMAGE"
|
|
||||||
fi
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
RELEASE_CHANNEL: "${{ inputs.channel }}"
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
POSTHOG_KEY: ${{ secrets.POSTHOG_KEY }}
|
POSTHOG_KEY: ${{ secrets.POSTHOG_KEY }}
|
||||||
POSTHOG_HOST: ${{ secrets.POSTHOG_HOST }}
|
POSTHOG_HOST: ${{ secrets.POSTHOG_HOST }}
|
||||||
|
|||||||
3
.gitignore
vendored
3
.gitignore
vendored
@ -49,4 +49,5 @@ src-tauri/resources/bin
|
|||||||
# Helper tools
|
# Helper tools
|
||||||
.opencode
|
.opencode
|
||||||
OpenCode.md
|
OpenCode.md
|
||||||
archive/
|
archive/
|
||||||
|
.cache/
|
||||||
3
Makefile
3
Makefile
@ -22,6 +22,8 @@ config-yarn:
|
|||||||
install-and-build: config-yarn
|
install-and-build: config-yarn
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
echo "skip"
|
echo "skip"
|
||||||
|
else ifeq ($(shell uname -s),Linux)
|
||||||
|
chmod +x src-tauri/build-utils/*
|
||||||
endif
|
endif
|
||||||
yarn install
|
yarn install
|
||||||
yarn build:core
|
yarn build:core
|
||||||
@ -82,6 +84,7 @@ else ifeq ($(shell uname -s),Linux)
|
|||||||
rm -rf ./src-tauri/target
|
rm -rf ./src-tauri/target
|
||||||
rm -rf "~/jan/extensions"
|
rm -rf "~/jan/extensions"
|
||||||
rm -rf "~/.cache/jan*"
|
rm -rf "~/.cache/jan*"
|
||||||
|
rm -rf "./.cache"
|
||||||
else
|
else
|
||||||
find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
|
find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
|
||||||
find . -name ".next" -type d -exec rm -rf '{}' +
|
find . -name ".next" -type d -exec rm -rf '{}' +
|
||||||
|
|||||||
@ -164,6 +164,7 @@ elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
|||||||
rm -rf ./src-tauri/target 2>/dev/null || true
|
rm -rf ./src-tauri/target 2>/dev/null || true
|
||||||
rm -rf ~/jan/extensions 2>/dev/null || true
|
rm -rf ~/jan/extensions 2>/dev/null || true
|
||||||
rm -rf "~/.cache/jan*" 2>/dev/null || true
|
rm -rf "~/.cache/jan*" 2>/dev/null || true
|
||||||
|
rm -rf "./.cache" 2>/dev/null || true
|
||||||
else
|
else
|
||||||
# macOS cleanup (matches Makefile)
|
# macOS cleanup (matches Makefile)
|
||||||
find . -name "node_modules" -type d -prune -exec rm -rf '{}' + 2>/dev/null || true
|
find . -name "node_modules" -type d -prune -exec rm -rf '{}' + 2>/dev/null || true
|
||||||
|
|||||||
@ -33,9 +33,10 @@
|
|||||||
"copy:lib:win32": "cpx \"./lib/windows/*.dll\" \"./src-tauri/resources/lib/\"",
|
"copy:lib:win32": "cpx \"./lib/windows/*.dll\" \"./src-tauri/resources/lib/\"",
|
||||||
"copy:lib:darwin": "mkdir -p \"./src-tauri/resources/lib/\"",
|
"copy:lib:darwin": "mkdir -p \"./src-tauri/resources/lib/\"",
|
||||||
"download:bin": "node ./scripts/download-bin.mjs",
|
"download:bin": "node ./scripts/download-bin.mjs",
|
||||||
"build:tauri:linux:win32": "yarn download:bin && yarn install:cortex && yarn build:icon && yarn copy:assets:tauri && yarn tauri build",
|
"build:tauri:win32": "yarn download:bin && yarn tauri build",
|
||||||
"build:tauri:darwin": "yarn install:cortex && yarn build:icon && yarn copy:assets:tauri && yarn tauri build --target universal-apple-darwin",
|
"build:tauri:linux": "yarn download:bin && ./src-tauri/build-utils/shim-linuxdeploy.sh yarn tauri build && ./src-tauri/build-utils/buildAppImage.sh",
|
||||||
"build:tauri": "run-script-os",
|
"build:tauri:darwin": "yarn tauri build --target universal-apple-darwin",
|
||||||
|
"build:tauri": "yarn install:cortex && yarn build:icon && yarn copy:assets:tauri && run-script-os",
|
||||||
"build:icon": "tauri icon ./src-tauri/icons/icon.png",
|
"build:icon": "tauri icon ./src-tauri/icons/icon.png",
|
||||||
"build:core": "cd core && yarn build && yarn pack",
|
"build:core": "cd core && yarn build && yarn pack",
|
||||||
"build:web": "yarn workspace @janhq/web-app build",
|
"build:web": "yarn workspace @janhq/web-app build",
|
||||||
|
|||||||
33
src-tauri/build-utils/buildAppImage.sh
Executable file
33
src-tauri/build-utils/buildAppImage.sh
Executable file
@ -0,0 +1,33 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
APPIMAGETOOL="./.cache/build-tools/appimagetool"
|
||||||
|
RELEASE_CHANNEL=${RELEASE_CHANNEL:-"stable"}
|
||||||
|
|
||||||
|
# pull in AppImageTool if it's not pre cached
|
||||||
|
mkdir -p ./.cache/build-tools
|
||||||
|
if [ ! -f "${APPIMAGETOOL}" ]; then
|
||||||
|
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O "${APPIMAGETOOL}"
|
||||||
|
chmod +x "${APPIMAGETOOL}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${RELEASE_CHANNEL}" != "stable" ]; then
|
||||||
|
APP_DIR=./src-tauri/target/release/bundle/appimage/Jan-${RELEASE_CHANNEL}.AppDir
|
||||||
|
LIB_DIR=$APP_DIR/usr/lib/Jan-${RELEASE_CHANNEL}/binaries
|
||||||
|
else
|
||||||
|
APP_DIR=./src-tauri/target/release/bundle/appimage/Jan.AppDir
|
||||||
|
LIB_DIR=$APP_DIR/usr/lib/Jan/binaries
|
||||||
|
fi
|
||||||
|
|
||||||
|
# bundle additional resources in the AppDir without pulling in their dependencies
|
||||||
|
cp ./src-tauri/resources/bin/bun $APP_DIR/usr/bin/bun
|
||||||
|
mkdir -p $LIB_DIR/engines
|
||||||
|
cp -f ./src-tauri/binaries/deps/*.so* $LIB_DIR/
|
||||||
|
cp -f ./src-tauri/binaries/*.so* $LIB_DIR/
|
||||||
|
cp -rf ./src-tauri/binaries/engines $LIB_DIR/
|
||||||
|
|
||||||
|
# remove appimage generated by tauri build
|
||||||
|
APP_IMAGE=./src-tauri/target/release/bundle/appimage/$(ls ./src-tauri/target/release/bundle/appimage/ | grep AppImage | head -1)
|
||||||
|
echo $APP_IMAGE
|
||||||
|
rm -f $APP_IMAGE
|
||||||
|
|
||||||
|
# repackage appimage with additional resources
|
||||||
|
"${APPIMAGETOOL}" $APP_DIR $APP_IMAGE
|
||||||
30
src-tauri/build-utils/shim-linuxdeploy.sh
Executable file
30
src-tauri/build-utils/shim-linuxdeploy.sh
Executable file
@ -0,0 +1,30 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
# wrapper script to pin linuxdeploy version and inject environment variables into the
|
||||||
|
# build process. While yarn supports injecting environment vairables via env files,
|
||||||
|
# this applies to all yarn scripts. Using a wrapper allows granular control over
|
||||||
|
# when environment variables are injected, and avoids tainting the system .cache
|
||||||
|
|
||||||
|
# avoid redownloading corepack if possible
|
||||||
|
export COREPACK_HOME=${COREPACK_HOME:-${XDG_CACHE_HOME:-$HOME/.cache}/node/corepack}
|
||||||
|
# move cache home to <project root>/.cache
|
||||||
|
export XDG_CACHE_HOME=${PWD}/.cache
|
||||||
|
|
||||||
|
LINUXDEPLOY_VER="1-alpha-20250213-2"
|
||||||
|
LINUXDEPLOY="$XDG_CACHE_HOME/tauri/linuxdeploy-$LINUXDEPLOY_VER-x86_64.AppImage"
|
||||||
|
SYMLINK="$XDG_CACHE_HOME/tauri/linuxdeploy-x86_64.AppImage"
|
||||||
|
|
||||||
|
mkdir -p "$XDG_CACHE_HOME/tauri"
|
||||||
|
|
||||||
|
if [ ! -f "$LINUXDEPLOY" ]; then
|
||||||
|
GLOB_PATTERN="$XDG_CACHE_HOME/tauri/linuxdeploy-*-x86_64.AppImage"
|
||||||
|
rm -f $GLOB_PATTERN
|
||||||
|
wget "https://github.com/linuxdeploy/linuxdeploy/releases/download/$LINUXDEPLOY_VER/linuxdeploy-x86_64.AppImage" -O "$LINUXDEPLOY"
|
||||||
|
chmod a+x "$LINUXDEPLOY"
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -f "$SYMLINK"
|
||||||
|
ln -s "$LINUXDEPLOY" "$SYMLINK"
|
||||||
|
|
||||||
|
"$@"
|
||||||
@ -76,7 +76,6 @@
|
|||||||
},
|
},
|
||||||
"bundle": {
|
"bundle": {
|
||||||
"active": true,
|
"active": true,
|
||||||
"targets": ["nsis", "app", "dmg", "deb", "appimage"],
|
|
||||||
"createUpdaterArtifacts": false,
|
"createUpdaterArtifacts": false,
|
||||||
"icon": [
|
"icon": [
|
||||||
"icons/32x32.png",
|
"icons/32x32.png",
|
||||||
@ -84,32 +83,6 @@
|
|||||||
"icons/128x128@2x.png",
|
"icons/128x128@2x.png",
|
||||||
"icons/icon.icns",
|
"icons/icon.icns",
|
||||||
"icons/icon.ico"
|
"icons/icon.ico"
|
||||||
],
|
]
|
||||||
"resources": [
|
|
||||||
"resources/pre-install/**/*",
|
|
||||||
"resources/lib/",
|
|
||||||
"binaries/**/*"
|
|
||||||
],
|
|
||||||
"externalBin": [
|
|
||||||
"binaries/cortex-server",
|
|
||||||
"resources/bin/bun",
|
|
||||||
"resources/bin/uv"
|
|
||||||
],
|
|
||||||
"linux": {
|
|
||||||
"appimage": {
|
|
||||||
"bundleMediaFramework": false,
|
|
||||||
"files": {}
|
|
||||||
},
|
|
||||||
"deb": {
|
|
||||||
"files": {
|
|
||||||
"usr/bin/bun": "resources/bin/bun",
|
|
||||||
"usr/lib/Jan/binaries": "binaries/deps",
|
|
||||||
"usr/lib/Jan/binaries/engines": "binaries/engines"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"windows": {
|
|
||||||
"signCommand": "powershell -ExecutionPolicy Bypass -File ./sign.ps1 %1"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
26
src-tauri/tauri.linux.conf.json
Normal file
26
src-tauri/tauri.linux.conf.json
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
"bundle": {
|
||||||
|
"targets": ["deb", "appimage"],
|
||||||
|
"resources": [
|
||||||
|
"resources/pre-install/**/*"
|
||||||
|
],
|
||||||
|
"externalBin": [
|
||||||
|
"binaries/cortex-server",
|
||||||
|
"resources/bin/uv"
|
||||||
|
],
|
||||||
|
"linux": {
|
||||||
|
"appimage": {
|
||||||
|
"bundleMediaFramework": false,
|
||||||
|
"files": {}
|
||||||
|
},
|
||||||
|
"deb": {
|
||||||
|
"files": {
|
||||||
|
"usr/bin/bun": "resources/bin/bun",
|
||||||
|
"usr/lib/Jan/binaries": "binaries/deps",
|
||||||
|
"usr/lib/Jan/binaries/engines": "binaries/engines",
|
||||||
|
"usr/lib/Jan/binaries/libvulkan.so": "binaries/libvulkan.so"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
15
src-tauri/tauri.macos.conf.json
Normal file
15
src-tauri/tauri.macos.conf.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"bundle": {
|
||||||
|
"targets": ["app", "dmg"],
|
||||||
|
"resources": [
|
||||||
|
"resources/pre-install/**/*",
|
||||||
|
"resources/lib/",
|
||||||
|
"binaries/**/*"
|
||||||
|
],
|
||||||
|
"externalBin": [
|
||||||
|
"binaries/cortex-server",
|
||||||
|
"resources/bin/bun",
|
||||||
|
"resources/bin/uv"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
18
src-tauri/tauri.windows.conf.json
Normal file
18
src-tauri/tauri.windows.conf.json
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"bundle": {
|
||||||
|
"targets": ["nsis"],
|
||||||
|
"resources": [
|
||||||
|
"resources/pre-install/**/*",
|
||||||
|
"resources/lib/",
|
||||||
|
"binaries/**/*"
|
||||||
|
],
|
||||||
|
"externalBin": [
|
||||||
|
"binaries/cortex-server",
|
||||||
|
"resources/bin/bun",
|
||||||
|
"resources/bin/uv"
|
||||||
|
],
|
||||||
|
"windows": {
|
||||||
|
"signCommand": "powershell -ExecutionPolicy Bypass -File ./sign.ps1 %1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user