Skip to content

Commit

Permalink
Remove deprecated plugins.
Browse files Browse the repository at this point in the history
  • Loading branch information
Berrysoft committed Oct 24, 2023
1 parent 9b155d1 commit d34e8ce
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 79 deletions.
22 changes: 0 additions & 22 deletions bins/Cargo.lock

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

46 changes: 0 additions & 46 deletions bins/ayaka-gui/package-lock.json

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

4 changes: 1 addition & 3 deletions bins/ayaka-gui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
"@fortawesome/free-solid-svg-icons": "^6.4.2",
"@fortawesome/vue-fontawesome": "^3.0.3",
"@tauri-apps/api": "^2.0.0-alpha.9",
"@tauri-apps/plugin-app": "^2.0.0-alpha.1",
"@tauri-apps/plugin-window": "^2.0.0-alpha.1",
"@tauri-apps/plugin-os": "^2.0.0-alpha.3",
"async-mutex": "^0.4.0",
"bootstrap": "^5.3.2",
Expand All @@ -39,4 +37,4 @@
"vite": "^3.2.7",
"vue-tsc": "^1.8.20"
}
}
}
2 changes: 0 additions & 2 deletions bins/ayaka-gui/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ serde_json = "1"
serde = { version = "1", features = ["derive"] }
tauri = { version = "2.0.0-alpha.16", features = [] }
clap = { workspace = true, features = ["derive"] }
tauri-plugin-app = "2.0.0-alpha.2"
tauri-plugin-window = "2.0.0-alpha.2"
tauri-plugin-os = "2.0.0-alpha.3"
tokio = { workspace = true, features = ["sync"] }
axum = { version = "0.6", default-features = false, features = [
Expand Down
4 changes: 1 addition & 3 deletions bins/ayaka-gui/src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,7 @@ pub fn run() -> Result<()> {
.plugin(tauri_plugin_dialog::init());
#[cfg(target_os = "android")]
let builder = builder.plugin(file_picker_android::init());
let builder = builder
.plugin(tauri_plugin_os::init())
.plugin(tauri_plugin_window::init());
let builder = builder.plugin(tauri_plugin_os::init());
builder
.setup(move |app| {
#[cfg(target_os = "android")]
Expand Down
3 changes: 2 additions & 1 deletion bins/ayaka-gui/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"beforeBuildCommand": "npm run build",
"beforeDevCommand": "npm run dev",
"devPath": "http://localhost:5173",
"distDir": "../dist"
"distDir": "../dist",
"withGlobalTauri": true
},
"package": {
"productName": "ayaka-gui",
Expand Down
2 changes: 1 addition & 1 deletion bins/ayaka-gui/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import 'bootstrap-dark-5/dist/css/bootstrap-dark.min.css'
import { getCurrent } from "@tauri-apps/plugin-window"
import { getCurrent } from "@tauri-apps/api/window"
import { init } from './interop'
import { Modal } from 'bootstrap'
</script>
Expand Down
2 changes: 1 addition & 1 deletion bins/ayaka-gui/src/views/AboutView.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { getName, getTauriVersion, getVersion } from "@tauri-apps/plugin-app"
import { getName, getTauriVersion, getVersion } from "@tauri-apps/api/app"
import { info, ayaka_version } from '../interop'
import IconButton from '../components/IconButton.vue';
</script>
Expand Down

0 comments on commit d34e8ce

Please sign in to comment.