Skip to content

Commit

Permalink
fix: rename into tymtLauncher
Browse files Browse the repository at this point in the history
  • Loading branch information
RAZGRIZ219104 committed Jun 14, 2024
1 parent 356025d commit f2a66e6
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>tymtLauncherDebug v2.1.2</title>
<title>tymtLauncher v2.1.2</title>
</head>

<body>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tymtLauncherDebug",
"description": "tymtLauncherDebug client",
"name": "tymtLauncher",
"description": "tymtLauncher client",
"homepage": "https://github.com/solarenterprises/tymtLauncher-Client#readme",
"author": "Solar Enterprises <[email protected]>",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

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

4 changes: 2 additions & 2 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "tymtlauncherdebug"
name = "tymtLauncher"
version = "2.1.2"
description = "tymtLauncherdebug"
description = "tymtLauncher"
authors = ["solar"]
edition = "2021"

Expand Down
26 changes: 13 additions & 13 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ async fn main() -> std::io::Result<()> {
}
SystemTrayEvent::DoubleClick { position: _, size: _, .. } => {
println!("system tray received a double click");
let window = app.get_window("tymtLauncherDebug").unwrap();
let window = app.get_window("tymtLauncher").unwrap();
window.show().unwrap();
window.set_focus().unwrap();
}
Expand All @@ -108,17 +108,17 @@ async fn main() -> std::io::Result<()> {
std::process::exit(0);
}
"hide" => {
let window = app.get_window("tymtLauncherDebug").unwrap();
let window = app.get_window("tymtLauncher").unwrap();
window.hide().unwrap();
}
"showVisible" => {
println!("showVisible received a left click");
let window = app.get_window("tymtLauncherDebug").unwrap();
let window = app.get_window("tymtLauncher").unwrap();
window.show().unwrap();
window.set_focus().unwrap();
}
"fullscreen" => {
let window = app.get_window("tymtLauncherDebug").unwrap();
let window = app.get_window("tymtLauncher").unwrap();
window.show().unwrap();
window.set_focus().unwrap();
window
Expand All @@ -127,13 +127,13 @@ async fn main() -> std::io::Result<()> {
}
"wallet" => {
app.emit_all("wallet", "wallet").expect("failed to emit event wallet");
let window = app.get_window("tymtLauncherDebug").unwrap();
let window = app.get_window("tymtLauncher").unwrap();
window.show().unwrap();
window.set_focus().unwrap();
}
"games" => {
app.emit_all("games", "games").expect("failed to emit event games");
let window = app.get_window("tymtLauncherDebug").unwrap();
let window = app.get_window("tymtLauncher").unwrap();
window.show().unwrap();
window.set_focus().unwrap();
}
Expand All @@ -146,7 +146,7 @@ async fn main() -> std::io::Result<()> {
app.emit_all("signout", "signout").expect(
"failed to emit event signout"
);
let window = app.get_window("tymtLauncherDebug").unwrap();
let window = app.get_window("tymtLauncher").unwrap();
window.show().unwrap();
window.set_focus().unwrap();
}
Expand Down Expand Up @@ -487,7 +487,7 @@ async fn main() -> std::io::Result<()> {

match
client
.post("https://dev.tymt.com/api/orders/request-new-order")
.post("https://tymt.com/api/orders/request-new-order")
.header(header::CONTENT_TYPE, "application/json")
.header(
"x-token",
Expand Down Expand Up @@ -538,7 +538,7 @@ async fn main() -> std::io::Result<()> {

match
client
.get(format!("https://dev.tymt.com/api/orders/orders/{}", request_param.id))
.get(format!("https://tymt.com/api/orders/orders/{}", request_param.id))
.send().await
{
Ok(response) =>
Expand Down Expand Up @@ -593,7 +593,7 @@ async fn main() -> std::io::Result<()> {
Ok(())
})
.run(tauri::generate_context!())
.expect("error while running tymtLauncherDebug");
.expect("error while running tymtLauncher");

Ok(())
}
Expand Down Expand Up @@ -1267,7 +1267,7 @@ fn open_directory(path: &str) {
fn get_machine_id() -> Result<String, String> {
let mut builder = IdBuilder::new(Encryption::SHA256);
builder.add_component(HWIDComponent::SystemID);
let hwid = builder.build("tymtLauncherDebug").map_err(|err| err.to_string())?;
let hwid = builder.build("tymtLauncher").map_err(|err| err.to_string())?;

Ok(hwid)
}
Expand All @@ -1287,7 +1287,7 @@ async fn show_transaction_window(app_handle: tauri::AppHandle) {
eprintln!("Window 'tymt_d53_transaction' not found");
}

if let Some(window_to_hide) = app_handle.get_window("tymtLauncherDebug") {
if let Some(window_to_hide) = app_handle.get_window("tymtLauncher") {
if let Err(e) = window_to_hide.hide() {
eprintln!("Failed to hide window 'tymtLauncher': {}", e);
}
Expand Down Expand Up @@ -1319,7 +1319,7 @@ async fn hide_transaction_window(app_handle: tauri::AppHandle) {
eprintln!("Window 'tymt_d53_transaction' not found");
}

if let Some(window_to_hide) = app_handle.get_window("tymtLauncherDebug") {
if let Some(window_to_hide) = app_handle.get_window("tymtLauncher") {
if let Err(e) = window_to_hide.show() {
eprintln!("Failed to show window 'tymtLauncher': {}", e);
}
Expand Down
8 changes: 4 additions & 4 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"withGlobalTauri": true
},
"package": {
"productName": "tymtLauncherDebug",
"productName": "tymtLauncher",
"version": "2.1.2"
},

Expand Down Expand Up @@ -93,8 +93,8 @@
},
"windows": [
{
"label": "tymtLauncherDebug",
"title": "tymtLauncherDebug 2.1.2",
"label": "tymtLauncher",
"title": "tymtLauncher 2.1.2",
"resizable": true,
"width": 1440,
"height": 1024,
Expand Down Expand Up @@ -129,7 +129,7 @@
"bundle": {
"active": true,
"targets": "all",
"identifier": "tymtLauncherDebug",
"identifier": "tymtLauncher",
"publisher": "[email protected]",
"icon": ["icons/32x32.png", "icons/128x128.png", "icons/[email protected]", "icons/icon.icns", "icons/icon.ico"],
"category": "Game",
Expand Down
2 changes: 1 addition & 1 deletion src/components/ComingModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const ComingModal = ({ open, setOpen }: props) => {
</Box>
<Stack direction={"column"} justifyContent={"center"} alignItems={"center"} textAlign={"center"} gap={"10px"}>
<Box className="fs-h3 blue">{t("hom-16_coming-soon")}</Box>
<Box className="fs-h3 white">{`tymtLauncherDebug v${tymt_version}`}</Box>
<Box className="fs-h3 white">{`tymtLauncher v${tymt_version}`}</Box>
<Box className="fs-h3 white">{`(${tymt_release_date} released)`}</Box>
</Stack>
</Stack>
Expand Down
2 changes: 1 addition & 1 deletion src/providers/SocketProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const SocketProvider = () => {
useEffect(() => {
if (accountStore.uid && socketHashStore.socketHash) {
appWindow.title().then((res) => {
if (res === "tymtLauncherDebug 2.1.2") {
if (res === "tymtLauncher 2.1.2") {
socket.current = io(socket_backend_url as string, {
auth: {
userId: accountStoreRef.current.uid,
Expand Down

0 comments on commit f2a66e6

Please sign in to comment.