Skip to content

Commit

Permalink
improve tauri export
Browse files Browse the repository at this point in the history
  • Loading branch information
Armaldio committed Dec 6, 2024
1 parent 07279c2 commit 3cdd686
Show file tree
Hide file tree
Showing 8 changed files with 601 additions and 427 deletions.
64 changes: 26 additions & 38 deletions assets/tauri/template/app/index.html
Original file line number Diff line number Diff line change
@@ -1,43 +1,31 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="stylesheet" href="/src/styles.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tauri App</title>
<script type="module" src="/src/main.ts" defer></script>
</head>

<body>
<main class="container">
<h1>Welcome to Tauri</h1>
<head>
<meta charset="UTF-8">
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
>
<title>Document</title>

<div class="row">
<a href="https://vitejs.dev" target="_blank">
<img src="/src/assets/vite.svg" class="logo vite" alt="Vite logo" />
</a>
<a href="https://tauri.app" target="_blank">
<img
src="/src/assets/tauri.svg"
class="logo tauri"
alt="Tauri logo"
/>
</a>
<a href="https://www.typescriptlang.org/docs" target="_blank">
<img
src="/src/assets/typescript.svg"
class="logo typescript"
alt="typescript logo"
/>
</a>
</div>
<p>Click on the Tauri logo to learn more about the framework</p>
<script type="module" src="/src/main.ts" defer></script>

<style>
html,
body {
/* background-color: rgba(255, 0, 0, 0.25); */
/* pointer-events: none; */
}
</style>
</head>

<body>
<button id="btn">Show overlay</button>
<button id="btn2">Hide overlay</button>
<div id="counter"></div>
</body>

<!-- <script type="module" src="../main.ts"></script> -->

<form class="row" id="greet-form">
<input id="greet-input" placeholder="Enter a name..." />
<button type="submit">Greet</button>
</form>
<p id="greet-msg"></p>
</main>
</body>
</html>
2 changes: 1 addition & 1 deletion assets/tauri/template/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"build": "vite build",
"preview": "vite preview",
"tauri": "tauri"
},
Expand Down
79 changes: 51 additions & 28 deletions assets/tauri/template/app/src-tauri/Cargo.lock

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

3 changes: 2 additions & 1 deletion assets/tauri/template/app/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ futures = "0.3.31"

tauri-plugin-devtools = "2.0.0"

wgpu = "0.19"
wgpu = "0.20"
winit = "0.30.5"
env_logger = "0.9"
log = "0.4"
pollster = "0.4.0"
raw-window-handle = "0.5.2"
steamworks = "0.11.0"
tauri-plugin-fs = "2"
bytemuck = { version = "1.20.0", features = ["derive"] }
Loading

0 comments on commit 3cdd686

Please sign in to comment.