Repository navigation
feat(portable): support portable windows x64 distribution with isolated data folder - #40
Merged
Merged
Conversation
…ed data folder
- Detect portable mode at startup when data/ directory exists adjacent to executable
- Redirect Lua configuration and custom themes to data/config/
- Configure Tauri v2 AppDirectoriesOverride::Root to isolate webview cache and local storage into data/
- Add release workflow step on windows-latest to package and upload scribl_${VERSION}_x64_portable.zip
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This change introduces support for a portable Windows x64 distribution that relies on an isolated local
datadirectory. It dynamically detects portable execution environments, redirects Tauri root configuration directories, and automates the creation and uploading of portable ZIP releases in the GitHub Actions workflow.Closes #36
Key Changes
watcher.rs): Implementedget_portable_data_dirandget_portable_data_dir_fromto detect localdata/directories adjacent to the executable or via theSCRIBL_PORTABLE_DATA_DIRenvironment variable.lib.rs): Updated the app initialization to dynamically override Tauri root application paths if a portable data directory is found, ensuring self-contained storage.release.yml): Added a GitHub Actions workflow step to package the Windows x64 executable, LICENSE, README, and structured data template folders into a.ziparchive and upload it to the release.Verification & Testing
cargo test --manifest-path src-tauri/Cargo.tomldatafolder correctly reroutes configuration files, themes, and webview cache paths to the isolated directory.