forked from akai/readest
feat: build portable Windows binaries with app data kept within the executable directory (#2126)
This commit is contained in:
@@ -153,7 +153,7 @@ jobs:
|
|||||||
|
|
||||||
- name: install NDK (for Android build only)
|
- name: install NDK (for Android build only)
|
||||||
if: matrix.config.release == 'android'
|
if: matrix.config.release == 'android'
|
||||||
run: sdkmanager "ndk;27.0.11902837"
|
run: sdkmanager "ndk;28.2.13676358"
|
||||||
|
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
@@ -200,7 +200,7 @@ jobs:
|
|||||||
if: matrix.config.release == 'android'
|
if: matrix.config.release == 'android'
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
NDK_HOME: ${{ env.ANDROID_HOME }}/ndk/27.0.11902837
|
NDK_HOME: ${{ env.ANDROID_HOME }}/ndk/28.2.13676358
|
||||||
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
|
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
|
||||||
TAURI_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
|
TAURI_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
|
||||||
run: |
|
run: |
|
||||||
@@ -288,12 +288,18 @@ jobs:
|
|||||||
echo "Uploading release notes to GitHub release"
|
echo "Uploading release notes to GitHub release"
|
||||||
gh release upload ${{ needs.get-release.outputs.release_tag }} apps/readest-app/release-notes.json --clobber
|
gh release upload ${{ needs.get-release.outputs.release_tag }} apps/readest-app/release-notes.json --clobber
|
||||||
|
|
||||||
- name: upload portable binaries (Windows only)
|
- name: build and upload portable binaries (Windows only)
|
||||||
if: matrix.config.os == 'windows-latest'
|
if: matrix.config.os == 'windows-latest'
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
echo "Building Portable Binaries"
|
||||||
|
pushd apps/readest-app/
|
||||||
|
echo "NEXT_PUBLIC_PORTABLE_APP=true" >> .env.local
|
||||||
|
pnpm tauri build
|
||||||
|
|
||||||
|
popd
|
||||||
echo "Uploading Portable Binaries"
|
echo "Uploading Portable Binaries"
|
||||||
arch=${{ matrix.config.arch }}
|
arch=${{ matrix.config.arch }}
|
||||||
version=${{ needs.get-release.outputs.release_version }}
|
version=${{ needs.get-release.outputs.release_version }}
|
||||||
|
|||||||
@@ -152,15 +152,15 @@ pub fn run() {
|
|||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
macos::traffic_light::set_traffic_lights,
|
macos::traffic_light::set_traffic_lights,
|
||||||
])
|
])
|
||||||
|
.plugin(tauri_plugin_fs::init())
|
||||||
|
.plugin(tauri_plugin_persisted_scope::init())
|
||||||
.plugin(tauri_plugin_shell::init())
|
.plugin(tauri_plugin_shell::init())
|
||||||
.plugin(tauri_plugin_opener::init())
|
.plugin(tauri_plugin_opener::init())
|
||||||
.plugin(tauri_plugin_http::init())
|
.plugin(tauri_plugin_http::init())
|
||||||
.plugin(tauri_plugin_os::init())
|
.plugin(tauri_plugin_os::init())
|
||||||
.plugin(tauri_plugin_dialog::init())
|
.plugin(tauri_plugin_dialog::init())
|
||||||
.plugin(tauri_plugin_native_bridge::init())
|
.plugin(tauri_plugin_native_bridge::init())
|
||||||
.plugin(tauri_plugin_native_tts::init())
|
.plugin(tauri_plugin_native_tts::init());
|
||||||
.plugin(tauri_plugin_persisted_scope::init())
|
|
||||||
.plugin(tauri_plugin_fs::init());
|
|
||||||
|
|
||||||
#[cfg(desktop)]
|
#[cfg(desktop)]
|
||||||
let builder = builder.plugin(tauri_plugin_single_instance::init(|app, argv, cwd| {
|
let builder = builder.plugin(tauri_plugin_single_instance::init(|app, argv, cwd| {
|
||||||
|
|||||||
Reference in New Issue
Block a user