Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move runtime to
tauri-runtime
crate (#1751)
- Loading branch information
1 parent
e849495
commit 665ec1d
Showing
25 changed files
with
879 additions
and
699 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"tauri-runtime": patch | ||
"tauri": patch | ||
--- | ||
|
||
`tauri-runtime` crate initial release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env node | ||
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// SPDX-License-Identifier: MIT | ||
|
||
/* | ||
This script is solely intended to be run as part of the `covector version` step to | ||
keep the `tauri-release` crate version without the `beta` or `beta-rc` suffix. | ||
*/ | ||
|
||
const { readFileSync, writeFileSync } = require("fs") | ||
|
||
const runtimeManifestPath = '../../core/tauri-runtime/Cargo.toml' | ||
const dependencyManifestPaths = ['../../core/tauri/Cargo.toml'] | ||
const changelogPath = '../../core/tauri-runtime/CHANGELOG.md' | ||
|
||
const bump = process.argv[2] | ||
|
||
let runtimeManifest = readFileSync(runtimeManifestPath, "utf-8") | ||
runtimeManifest = runtimeManifest.replace(/version = "(\d+\.\d+\.\d+)-[^0-9\.]+\.0"/, 'version = "$1"') | ||
writeFileSync(runtimeManifestPath, runtimeManifest) | ||
|
||
let changelog = readFileSync(changelogPath, "utf-8") | ||
changelog = changelog.replace(/(\d+\.\d+\.\d+)-[^0-9\.]+\.0/, '$1') | ||
writeFileSync(changelogPath, changelog) | ||
|
||
for (const dependencyManifestPath of dependencyManifestPaths) { | ||
let dependencyManifest = readFileSync(dependencyManifestPath, "utf-8") | ||
dependencyManifest = dependencyManifest.replace(/tauri-runtime = { version = "(\d+\.\d+\.\d+)-[^0-9\.]+\.0"/, 'tauri-runtime = { version = "$1"') | ||
writeFileSync(dependencyManifestPath, dependencyManifest) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[package] | ||
name = "tauri-runtime" | ||
version = "0.0.0" | ||
authors = [ "Tauri Programme within The Commons Conservancy" ] | ||
categories = [ "gui", "web-programming" ] | ||
license = "Apache-2.0 OR MIT" | ||
homepage = "https://tauri.studio" | ||
repository = "https://github.com/tauri-apps/tauri" | ||
description = "Runtime for Tauri applications" | ||
edition = "2018" | ||
|
||
[dependencies] | ||
serde = { version = "1.0", features = [ "derive" ] } | ||
serde_json = "1.0" | ||
thiserror = "1.0" | ||
uuid = { version = "0.8.2", features = [ "v4" ] } | ||
tauri-utils = { version = "1.0.0-beta-rc.1", path = "../tauri-utils" } | ||
wry = { git = "https://github.com/tauri-apps/wry", rev = "6bc97aff525644b83a3a00537316c46d7afb985b" } | ||
image = "0.23" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.