Skip to content

Commit

Permalink
🦄 refactor: Rebrand
Browse files Browse the repository at this point in the history
  • Loading branch information
caoccao committed Aug 28, 2024
1 parent c07fa41 commit 49f9583
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/macos_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ jobs:
./configure --enable-static
make -j 4
- name: Build Better Media Info
- name: Build BetterMediaInfo
run: |
pnpm install
pnpm tauri build
- name: Upload the Artifact
uses: actions/upload-artifact@v4
with:
name: Better_Media_Info-${{ matrix.os }}-${{ matrix.arch }}-${{ env.BETTER_MEDIA_INFO_VERSION }}
name: BetterMediaInfo-${{ matrix.os }}-${{ matrix.arch }}-${{ env.BETTER_MEDIA_INFO_VERSION }}
path: |
src-tauri/target/release/bundle/dmg/*.dmg
6 changes: 3 additions & 3 deletions .github/workflows/windows_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,21 +86,21 @@ jobs:
run: |
node src-tauri\scripts\patch_tauri_conf.cjs
- name: Build Better Media Info
- name: Build BetterMediaInfo
run: |
pnpm install
pnpm tauri build
- name: Upload the msi
uses: actions/upload-artifact@v4
with:
name: Better_Media_Info-windows-x86_64-${{ env.BETTER_MEDIA_INFO_VERSION }}-msi
name: BetterMediaInfo-windows-x86_64-${{ env.BETTER_MEDIA_INFO_VERSION }}-msi
path: |
src-tauri/target/release/bundle/msi/*.msi
- name: Upload the nsis
uses: actions/upload-artifact@v4
with:
name: Better_Media_Info-windows-x86_64-${{ env.BETTER_MEDIA_INFO_VERSION }}-nsis
name: BetterMediaInfo-windows-x86_64-${{ env.BETTER_MEDIA_INFO_VERSION }}-nsis
path: |
src-tauri/target/release/bundle/nsis/*.exe
4 changes: 2 additions & 2 deletions docs/installation.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Installation

* Download the latest release at the [Releases](https://github.com/caoccao/BetterMediaInfo/releases) page.
* Install `Better Media Info*.dmg` on MacOS.
* Install `Better Media Info*.msi` or `Better Media Info*setup.exe` on Windows.
* Install `BetterMediaInfo*.dmg` on MacOS.
* Install `BetterMediaInfo*.msi` or `BetterMediaInfo*setup.exe` on Windows.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bettermi",
"version": "0.2.0",
"description": "Better Media Info",
"description": "BetterMediaInfo",
"type": "module",
"scripts": {
"dev": "vite dev",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl Config {

fn get_path_buf() -> PathBuf {
let mut config_path_buf = std::env::current_exe().unwrap().parent().unwrap().to_path_buf();
config_path_buf.push("Better Media Info.json");
config_path_buf.push("BetterMediaInfo.json");
config_path_buf
}

Expand Down
7 changes: 7 additions & 0 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

use tauri::Manager;

mod config;
mod controller;
mod media_info;
Expand Down Expand Up @@ -84,6 +86,11 @@ async fn write_text_file(file: String, text: String) -> Result<(), String> {
fn main() {
env_logger::init();
tauri::Builder::default()
.setup(|app| {
let window = app.get_window("main").unwrap();
let _ = window.set_title("BetterMediaInfo v0.2.0");
Ok(())
})
.invoke_handler(tauri::generate_handler![
get_about,
get_config,
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 @@
"distDir": "../build"
},
"package": {
"productName": "Better Media Info",
"productName": "BetterMediaInfo",
"version": "0.2.0"
},
"tauri": {
Expand Down Expand Up @@ -38,7 +38,7 @@
},
"windows": [
{
"title": "Better Media Info",
"title": "BetterMediaInfo",
"theme": "Light",
"width": 1200,
"height": 900,
Expand All @@ -47,8 +47,8 @@
}
],
"cli": {
"description": "Better Media Info",
"longDescription": "Better Media Info",
"description": "BetterMediaInfo",
"longDescription": "BetterMediaInfo",
"args": [
{
"name": "fileOrDirectory",
Expand Down
2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<link rel="stylesheet" href="%sveltekit.assets%/css/material-symbols-outlined.css" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Better Media Info</title>
<title>BetterMediaInfo</title>
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/about.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import * as Protocol from "../lib/protocol";
import { mediaInfoAbout, mediaInfoParameters } from "../lib/store";
const APP_NAME = "Better Media Info";
const APP_NAME = "BetterMediaInfo";
let about = { appVersion: "", mediaInfoVersion: "" };
let filteredParameters: Array<Protocol.Parameter> = [];
let parameters: Array<Protocol.Parameter> = [];
Expand Down

0 comments on commit 49f9583

Please sign in to comment.