Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release for v0.0.5 #15

Merged
merged 13 commits into from
Jun 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
fail-fast: false
matrix:
platform:
# TODO 其他平台均支持打包,但未经过测试,故暂时屏蔽掉
# TODO other platforms are supported for packaging, but not tested, so they are temporarily disabled
# 其他平台均支持打包,但未经过测试,故暂时屏蔽掉
# - "macos-latest"
# - "ubuntu-latest"
- "windows-latest"
Expand Down
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

- v1.1 Brazilian Portuguese translation.
- v1.1 German Translation
- v1.1 Spanish translation.
- v1.1 Italian translation.
- v1.1 Polish translation.
- v1.1 Ukrainian translation.

### Changed

- Use frontmatter title & description in each language version template
- Replace broken OpenGraph image with an appropriately-sized Keep a Changelog
image that will render properly (although in English for all languages)
- Fix OpenGraph title & description for all languages so the title and
description when links are shared are language-appropriate

### Removed

- Trademark sign previously shown after the project description in version
0.3.0

### Fixed

- Broken OpenGraph image in all language versions
Binary file added app-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<!-- <link rel="icon" type="image/svg+xml" href="/vite.svg" /> -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tauri + Vue + Typescript App</title>
</head>
Expand Down
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,20 @@
"dependencies": {
"@tauri-apps/api": "^1",
"vite-plugin-vuetify": "^2.0.3",
"vue": "^3.3.4",
"vue": "^3.4.27",
"vue-i18n": "9",
"vue-router": "4",
"vuetify": "^3.6.8"
"vue-router": "^4.3.3",
"vuetify": "^3.6.9"
},
"devDependencies": {
"@mdi/font": "^7.4.47",
"@tauri-apps/cli": "^1",
"@vitejs/plugin-vue": "^5.0.4",
"prettier": "3.3.2",
"sass": "^1.77.4",
"sass": "^1.77.5",
"typescript": "^5.0.2",
"vite": "^5.0.0",
"vue-tsc": "^1.8.5"
}
"vite": "^5.2.13",
"vue-tsc": "^2.0.21"
},
"packageManager": "yarn@1.22.19"
}
6 changes: 0 additions & 6 deletions public/tauri.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/vite.svg

This file was deleted.

137 changes: 137 additions & 0 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ edition = "2021"
tauri-build = { version = "1", features = [] }

[dependencies]
tauri = { version = "1", features = [ "window-start-dragging",
tauri = { version = "1", features = [
"window-create",
"window-show",
"window-start-dragging",
"fs-all",
"path-all",
"dialog-open",
Expand All @@ -23,10 +26,15 @@ sevenz-rust = "0.6.0"
zip = "2.1.3"
tempfile = "3"
walkdir = "2.5.0"
log = "0.4.21"
fs_extra = "1.3.0"
env_logger = "0.11.3"
simplelog = "0.12.2"

[target.'cfg(target_os = "windows")'.dependencies]
winreg = "0.52.0"


[features]
# This feature is used for production builds or when a dev server is not specified, DO NOT REMOVE!!
custom-protocol = ["tauri/custom-protocol"]
Binary file modified src-tauri/icons/128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/128x128@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square107x107Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square142x142Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square150x150Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square284x284Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square30x30Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square310x310Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square44x44Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square71x71Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square89x89Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/StoreLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/icon.icns
Binary file not shown.
Binary file modified src-tauri/icons/icon.ico
Binary file not shown.
Binary file modified src-tauri/icons/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src-tauri/src/commands/log.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
use crate::ret_code::RetCode;

#[tauri::command]
pub fn get_app_log_dir(app: tauri::AppHandle) -> Result<String, RetCode> {
let app_log_dir = app
.path_resolver()
.app_log_dir()
.ok_or(RetCode::GetAppLogPathFailed)?;
Ok(app_log_dir.to_str().unwrap().to_string())
}
2 changes: 0 additions & 2 deletions src-tauri/src/commands/mod.rs

This file was deleted.

31 changes: 1 addition & 30 deletions src-tauri/src/commands/os.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::fs;
use std::path::Path;
use std::process::Command;

#[tauri::command]
Expand Down Expand Up @@ -28,32 +26,5 @@ pub fn show_in_folder(path: String) {

#[tauri::command]
pub fn delete_folder(path: String) -> Result<(), String> {
let path = Path::new(&path);

// 检查路径是否存在
if !path.exists() {
return Err(format!("Path does not exist: {}", path.display()));
}

// 检查是否是目录
if !path.is_dir() {
return Err(format!("Path is not a directory: {}", path.display()));
}

// 尝试删除目录及其内容
match fs::remove_dir_all(path) {
Ok(_) => Ok(()),
Err(err) => Err(format!("Failed to delete folder: {}", err)),
}
}

#[tauri::command]
pub fn create_folder(path: String) {
let path = Path::new(&path);

// 检查路径是否存在
if !path.exists() {
// 尝试创建目录
fs::create_dir_all(path).unwrap();
}
fs_extra::dir::remove(path).map_err(|e| e.to_string())
}
Loading