From 21dc188dcf7e068f472db700d17485fc840df3d2 Mon Sep 17 00:00:00 2001 From: Aris Ripandi Date: Mon, 9 Dec 2024 22:07:39 +0700 Subject: [PATCH] refactor: rebrand project name to Tauri Start Solid --- README.md | 20 ++++++++++---------- index.html | 2 +- package.json | 2 +- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 6 +++--- src-tauri/Info.plist | 6 +++--- src-tauri/src/main.rs | 2 +- src-tauri/tauri.conf.json | 12 +++--------- 8 files changed, 23 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index a31eebb..f7ae635 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,25 @@ -# ⚡️ Tauri Starter Template +# ⚡️ Tauri Start Solid [![Tauri version](https://img.shields.io/badge/Tauri-v2.0.0-24C8DB.svg?logo=tauri)](https://tauri.app) [![Rust version](https://img.shields.io/badge/rust-v1.77-orange.svg?logo=rust)](https://www.rust-lang.org) -[![CI Test](https://github.com/riipandi/tauri-tray-app/actions/workflows/ci-test.yml/badge.svg)](https://github.com/riipandi/tauri-tray-app/actions/workflows/ci-test.yml) -[![Contribution welcome](https://img.shields.io/badge/Contributions-welcome-gray.svg)](https://github.com/riipandi/tauri-tray-app/pulse) +[![CI Test](https://github.com/riipandi/tauri-start-solid/actions/workflows/ci-test.yml/badge.svg)](https://github.com/riipandi/tauri-start-solid/actions/workflows/ci-test.yml) +[![Contribution welcome](https://img.shields.io/badge/Contributions-welcome-gray.svg)](https://github.com/riipandi/tauri-start-solid/pulse) --- -This project template should help get you started developing a multi-platform desktop -application with tray menu using Tauri, SolidJS, Tailwind CSS, Typescript, and Vite. +This project template should help get you started developing a multi-platform desktop application +with tray menu support using Tauri, SolidJS, Nano Stores, Typescript, Tailwind CSS, and Vite. ## Quick Start ```sh -pnpm dlx degit riipandi/tauri-tray-app my-app +pnpm dlx degit riipandi/tauri-start-solid my-app ``` 1. Install required toolchains: [Rust][rust], [Node.js][nodejs], [PNPM][pnpm], and [Lefthook][lefthook]. 2. Replace the project name in the [`package.json`](./package.json), [`Cargo.toml`](./src-tauri/Cargo.toml), and [`tauri.conf.json`](./src-tauri/tauri.conf.json) files. -3. Find and replace `tauri-tray-app`, `tauri_tray_app` and `Tauri App` strings in the source files. +3. Find and replace `tauri-start-solid`, `tauri_start_solid` and `Tauri Start Solid` strings in the source files. 4. Set application identifier and other application metadata in [`tauri.conf.json`](./src-tauri/tauri.conf.json) file. 5. Install frontend dependencies by running `pnpm install`. 6. Run `pnpm dev` to start developing. @@ -58,13 +58,13 @@ to build the application in debug mode, this will enable developer tools. ### Fix Unsigned Warning (macOS) -> Warning: "Tauri App" is damaged and can't be opened. +> Warning: "Tauri Start Solid" is damaged and can't be opened. This warning is shown because the build is not signed. Run the following command to suppress this warning: ```sh -xattr -r -d com.apple.quarantine "/Applications/Tauri App.app" +xattr -r -d com.apple.quarantine "/Applications/Tauri Start Solid.app" ``` ## Screenshots @@ -75,7 +75,7 @@ xattr -r -d com.apple.quarantine "/Applications/Tauri App.app" ## Acknowledgements - [Tauri Examples Repo](https://github.com/tauri-apps/tauri/tree/dev/examples) -- [tauri-tray-app-example](https://github.com/dheater/tauri-tray-app-example) +- [tauri-start-solid-example](https://github.com/dheater/tauri-start-solid-example) - [tauri-tray-icon-animation](https://github.com/rming/tauri-tray-icon-animation) - [tauri-tray-menu](https://github.com/rming/tauri-tray-menu) - [tauri-window-controls](https://github.com/agmmnn/tauri-controls) diff --git a/index.html b/index.html index 02a35bd..1c721f4 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - Tauri + Solid + Typescript App + Tauri Start Solid diff --git a/package.json b/package.json index 5936d0e..37d64fd 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "tauri-tray-app", + "name": "tauri-start-solid", "version": "2.0.0", "private": true, "type": "module", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 00ac264..9d79a05 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -3708,7 +3708,7 @@ dependencies = [ ] [[package]] -name = "tauri-tray-app" +name = "tauri-start-solid" version = "0.0.0" dependencies = [ "dotenv-build", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 73aa130..f3136f4 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,10 +1,10 @@ [package] -name = "tauri-tray-app" +name = "tauri-start-solid" version = "0.0.0" description = "A Tauri application built with Tauri, SolidJS, and TypeScript" authors = ["you"] license = "MIT or Apache-2.0" -repository = "http://github.com/riipandi/tauri-tray-app" +repository = "http://github.com/riipandi/tauri-start-solid" rust-version = "1.77" edition = "2021" @@ -14,7 +14,7 @@ edition = "2021" # The `_lib` suffix may seem redundant but it is necessary # to make the lib name unique and wouldn't conflict with the bin name. # This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519 -name = "tauri_tray_app_lib" +name = "tauri_start_solid_lib" crate-type = ["staticlib", "cdylib", "rlib"] [build-dependencies] diff --git a/src-tauri/Info.plist b/src-tauri/Info.plist index b5a4263..3b0a872 100644 --- a/src-tauri/Info.plist +++ b/src-tauri/Info.plist @@ -8,11 +8,11 @@ CFBundleURLName - com.example.tauri-tray-app + com.example.tauri-start-solid CFBundleURLSchemes - - tauri-tray-app + + tauri-start-solid diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 22bccff..f8dbf57 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -2,5 +2,5 @@ #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] fn main() { - tauri_tray_app_lib::run() + tauri_start_solid_lib::run() } diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 79a5934..18259fa 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", - "productName": "Tauri App", - "identifier": "com.example.tauri-tray-app", + "productName": "Tauri Start Solid", + "identifier": "com.example.tauri-start-solid", "version": "0.0.0", "build": { "beforeDevCommand": "pnpm dev:ui", @@ -21,7 +21,7 @@ "trayIcon": null, "windows": [ { - "title": "tauri-tray-app", + "title": "Tauri Start Solid", "width": 800, "height": 600 } @@ -82,12 +82,6 @@ "plugins": { "shell": { "open": true - }, - "updater": { - "active": true, - "endpoints": ["https://releases.example.com/{{target}}/{{arch}}/{{current_version}}"], - "dialog": true, - "pubkey": "YOUR_UPDATER_SIGNATURE_PUBKEY_HERE" } } }