diff options
| author | 2026-01-18 22:13:25 +0800 | |
|---|---|---|
| committer | 2026-01-18 22:13:25 +0800 | |
| commit | 53d3d71b69408b5fade60fbc41cee3d8e0946cbe (patch) | |
| tree | eb54be440ee6fe7af30ea54cc2f689563dc28ef8 /src-tauri | |
| parent | 30a7da9eb1734e19bdb98083bdaae757e0ce9b3a (diff) | |
| parent | 09b2e0f84721587f0b0a59818ebc5720c447ebb8 (diff) | |
| download | DropOut-53d3d71b69408b5fade60fbc41cee3d8e0946cbe.tar.gz DropOut-53d3d71b69408b5fade60fbc41cee3d8e0946cbe.zip | |
Adopt Semifold CI and prepare 0.2.0-alpha pre-release (#62)
Refer: http://semifold.noctisynth.org/
## Summary by Sourcery
Adopt Semifold-based release management and prepare the project for a
0.2.0-alpha pre-release across Rust and UI packages.
New Features:
- Introduce Semifold CI release workflow to orchestrate builds,
publishing, and changelog management.
- Add Semifold status workflow to report release status on pull
requests.
- Add workspace-level Node tooling and scripts to manage Tauri version
bumping and project preparation.
Enhancements:
- Refactor GitHub Actions workflows for build, test, check, and lint to
simplify pnpm usage, update action versions, and standardize artifact
paths.
- Move Rust profile configuration into a new Cargo workspace and add a
pnpm workspace for the UI package.
- Configure Semifold changelog and release metadata for Rust and Node
packages, including alpha pre-release tagging.
Build:
- Replace the tag-triggered GitHub release workflow with a branch-based
Semifold CI pipeline that builds artifacts for Linux, macOS, and Windows
and uploads them for publishing.
- Update CI action versions (checkout, setup-node, upload-artifact,
download-artifact) and adjust Rust cache configuration and artifact
locations.
- Add root workspace package.json, pnpm-workspace.yaml, and pnpm
overrides to centralize tooling and dependency management.
CI:
- Add a dedicated Semifold status GitHub Actions workflow for pull
requests to main.
- Update existing check, lint, test, and build workflows to align with
the new workspace layout and artifact directories.
Deployment:
- Integrate Semifold configuration for automated publishing to crates.io
and npm, including pre-checks, post-version hooks, and use of stored
build artifacts in releases.
Tests:
- Adjust test workflow artifact paths to match the new target directory
structure and workspace configuration.
Chores:
- Remove unused Python packaging files and old Node lockfiles that are
no longer part of the build or release process.
Diffstat (limited to 'src-tauri')
| -rw-r--r-- | src-tauri/Cargo.toml | 8 | ||||
| -rw-r--r-- | src-tauri/tauri.conf.json | 80 |
2 files changed, 41 insertions, 47 deletions
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index ecd0beb..78743cd 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dropout" -version = "0.1.26" +version = "0.2.0-alpha" edition = "2021" authors = ["HsiangNianian"] description = "The DropOut Minecraft Game Launcher" @@ -36,12 +36,6 @@ regex = "1.12.2" [build-dependencies] tauri-build = { version = "2.0", features = [] } -[profile.dev] -opt-level = 0 - -[profile.release] -opt-level = 3 - [package.metadata.deb] depends = "libgtk-3-0" section = "games" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index dd84fd4..fec2eb3 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,43 +1,43 @@ { - "productName": "dropout", - "version": "0.1.26", - "identifier": "com.dropout.launcher", - "build": { - "beforeDevCommand": "pnpm -C ../ui dev", - "beforeBuildCommand": "pnpm -C ../ui build", - "devUrl": "http://localhost:5173", - "frontendDist": "../ui/dist" - }, - "app": { - "windows": [ - { - "title": "Minecraft DropOut Launcher", - "width": 1024, - "height": 768, - "minWidth": 905, - "minHeight": 575, - "resizable": true - } - ], - "security": { - "csp": "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self' data:; connect-src 'self' https: ws: wss:;", - "capabilities": ["default"] - } - }, - "bundle": { - "active": true, - "targets": "all", - "icon": [ - "icons/32x32.png", - "icons/128x128.png", - "icons/128x128@2x.png", - "icons/icon.icns", - "icons/icon.ico" - ], - "linux": { - "appimage": { - "bundleMediaFramework": false - } - } + "productName": "dropout", + "version": "0.2.0-alpha", + "identifier": "com.dropout.launcher", + "build": { + "beforeDevCommand": "pnpm --filter @dropout/ui dev", + "beforeBuildCommand": "pnpm --filter @dropout/ui build", + "devUrl": "http://localhost:5173", + "frontendDist": "../ui/dist" + }, + "app": { + "windows": [ + { + "title": "Minecraft DropOut Launcher", + "width": 1024, + "height": 768, + "minWidth": 905, + "minHeight": 575, + "resizable": true + } + ], + "security": { + "csp": "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self' data:; connect-src 'self' https: ws: wss:;", + "capabilities": ["default"] } + }, + "bundle": { + "active": true, + "targets": "all", + "icon": [ + "icons/32x32.png", + "icons/128x128.png", + "icons/128x128@2x.png", + "icons/icon.icns", + "icons/icon.ico" + ], + "linux": { + "appimage": { + "bundleMediaFramework": false + } + } + } } |