Skip to content

Commit

Permalink
切换为tauri
Browse files Browse the repository at this point in the history
  • Loading branch information
hanaTsuk1 committed Apr 6, 2023
1 parent 9ca124c commit daf7fba
Show file tree
Hide file tree
Showing 116 changed files with 7,355 additions and 9,709 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[/src-tauri/**.rs]
indent_size = 4

[*.md]
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src-tauri
6 changes: 6 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "@antfu",
"rules": {
"eqeqeq": "off"
}
}
46 changes: 0 additions & 46 deletions .github/workflows/release.yaml

This file was deleted.

25 changes: 21 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
build/bin
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
frontend/dist
frontend/wailsjs
tmp
dist
dist-ssr
*.local

# Editor directories and files
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
8 changes: 4 additions & 4 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"Vue.volar",
"tauri-apps.tauri-vscode",
"rust-lang.rust-analyzer",
"lokalise.i18n-ally",
"antfu.iconify",
"antfu.unocss",
"vue.volar"
"antfu.unocss"
]
}
35 changes: 28 additions & 7 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,36 @@
{
// 使用 IntellliSense 来了解可能的属性。
// 悬停以查看现有属性的描述。
// 更多详情访问:https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Wails: Debug",
"type": "go",
"type": "lldb",
"request": "launch",
"mode": "exec",
"program": "${workspaceFolder}/build/bin/shion-debug.exe",
"preLaunchTask": "build",
"cwd": "${workspaceFolder}",
"env": {}
"name": "Tauri Development Debug",
"cargo": {
"args": [
"build",
"--manifest-path=./src-tauri/Cargo.toml",
"--no-default-features"
]
},
// task for the `beforeDevCommand` if used, must be configured in `.vscode/tasks.json`
"preLaunchTask": "ui:dev"
},
{
"type": "lldb",
"request": "launch",
"name": "Tauri Production Debug",
"cargo": {
"args": [
"build",
"--release",
"--manifest-path=./src-tauri/Cargo.toml"
]
},
// task for the `beforeBuildCommand` if used, must be configured in `.vscode/tasks.json`
"preLaunchTask": "ui:build"
}
]
}
7 changes: 4 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"i18n-ally.localesPaths": ["frontend/src/locales"],
"i18n-ally.localesPaths": [
"src/locales"
],
"i18n-ally.keystyle": "nested",
"unocss.root": "frontend",
"prettier.enable": false,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
}
}
33 changes: 20 additions & 13 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
{
// 关于 tasks.json 格式文档,请参阅:https://go.microsoft.com/fwlink/?LinkId=733558
"version": "2.0.0",
"tasks": [
{
"label": "build",
"label": "ui:dev",
"type": "shell",
"options": {
"cwd": "${workspaceFolder}"
},
"command": "go",
// `dev` keeps running in the background
// ideally you should also configure a `problemMatcher`
// see https://code.visualstudio.com/docs/editor/tasks#_can-a-background-task-be-used-as-a-prelaunchtask-in-launchjson
"isBackground": true,
// change this to your `beforeDevCommand`:
"command": "pnpm",
"args": [
"build",
"-ldflags=-X \"main.version=0.1.0\" -X \"main.appName=shion\" -X \"main.author=hanaTsuk1\"",
"-tags",
"dev",
"-gcflags",
"all=-N -l",
"-o",
"build/bin/shion-debug.exe"
"run",
"dev"
]
},
{
"label": "ui:build",
"type": "shell",
// change this to your `beforeBuildCommand`:
"command": "pnpm",
"args": [
"run",
"build"
]
}
]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
## shion
# shion
Loading

0 comments on commit daf7fba

Please sign in to comment.