Skip to content

Commit

Permalink
[01-empty-app] [tauri] Upgrade tauri to V2
Browse files Browse the repository at this point in the history
Closes #929
  • Loading branch information
Elanis committed Dec 22, 2024
1 parent de65fbb commit 3a1ab3b
Show file tree
Hide file tree
Showing 8 changed files with 1,718 additions and 980 deletions.
1 change: 1 addition & 0 deletions benchmark/01-empty-app/tauri/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src-tauri/gen/schemas/
9 changes: 8 additions & 1 deletion benchmark/01-empty-app/tauri/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@
<p>This is an empty app</p>
<script>
window.addEventListener('load', () => {
window.__TAURI__.event.emit('load');
const intervalId = setInterval(() => {
if(!window.__TAURI__) {
return;
}

clearInterval(intervalId);
window.__TAURI__.event.emit('load');
}, 30);
});
</script>
</body>
Expand Down
227 changes: 106 additions & 121 deletions benchmark/01-empty-app/tauri/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions benchmark/01-empty-app/tauri/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"build": "tauri build"
},
"dependencies": {
"@tauri-apps/api": "^1.6.0"
"@tauri-apps/api": "^2.0.0"
},
"devDependencies": {
"@tauri-apps/cli": "^1.6.3"
"@tauri-apps/cli": "^2.1.0"
}
}
Loading

0 comments on commit 3a1ab3b

Please sign in to comment.