Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Commit

Permalink
Fix Windows version info
Browse files Browse the repository at this point in the history
  • Loading branch information
lujjjh committed Sep 26, 2021
1 parent f61af11 commit 71f41f5
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion darwin/LitoMusic/LitoMusic.xcodeproj/project.pbxproj
Expand Up @@ -34,7 +34,7 @@
B71F1E9B26FE141C00A9DAA2 /* WDBSetWebSecurityEnabled.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WDBSetWebSecurityEnabled.m; sourceTree = "<group>"; };
B71F1E9F26FE2DE600A9DAA2 /* VisualEffectView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VisualEffectView.swift; sourceTree = "<group>"; };
B71F1EA326FEFE7C00A9DAA2 /* LitoSchemeHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LitoSchemeHandler.swift; sourceTree = "<group>"; };
B71F1EA826FF1F9F00A9DAA2 /* dist */ = {isa = PBXFileReference; lastKnownFileType = folder; name = dist; path = ../../dist; sourceTree = "<group>"; };
B71F1EA826FF1F9F00A9DAA2 /* dist */ = {isa = PBXFileReference; lastKnownFileType = folder; name = dist; path = ../../packages/lito/dist; sourceTree = "<group>"; };
B7A197AD26FF34930066BCDC /* WKWebView+Hook.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "WKWebView+Hook.m"; sourceTree = "<group>"; };
B7A197BD2700157A0066BCDC /* ParsedArgs.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ParsedArgs.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -5,7 +5,7 @@
"install": "cd packages/lito && npm install",
"dev:web": "cd packages/lito && npm start",
"dev:windows": "cd windows && cargo run",
"build:web": "rm -rf dist && cd packages/lito && npm run build && mv dist ../..",
"build:web": "cd packages/lito && npm run build",
"build:windows": "npm run build:web && cd windows && cargo build --target x86_64-pc-windows-msvc --release",
"build:darwin": "npm run build:web && make -C darwin"
}
Expand Down
1 change: 1 addition & 0 deletions windows/build.rs
Expand Up @@ -2,4 +2,5 @@ extern crate embed_resource;

fn main() {
embed_resource::compile("lito-manifest.rc");
embed_resource::compile("version.rc");
}
31 changes: 0 additions & 31 deletions windows/lito-manifest.rc
@@ -1,35 +1,4 @@
#define VER 0,1,0,0
#define VER_STR "0.1.0.0-beta.7\0"

#define RT_MANIFEST 24
1 RT_MANIFEST "lito.exe.manifest"

IDI_APPLICATION ICON "icon.ico"

2 VERSIONINFO

FILEVERSION VER
PRODUCTVERSION VER

BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "FileDescription", "A lightweight Apple Music client."
VALUE "FileVersion", VER_STR
VALUE "InternalName", "Lito Music"
VALUE "LegalCopyright", "See LICENSE.txt in the repository."
VALUE "ProductName", "Lito Music"
VALUE "OriginalFilename", "lito.exe"
VALUE "ProductVersion", VER_STR
VALUE "ProductShortName", "Lito Music"
VALUE "Official Build", "0"
END
END

BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x0409, 1200, 0x0804, 1200
END
END
2 changes: 1 addition & 1 deletion windows/src/main.rs
Expand Up @@ -38,7 +38,7 @@ const APP_URL: &str = if DEBUG {
};

#[cfg(not(debug_assertions))]
static APP_DIR: Dir = include_dir!("..\\dist");
static APP_DIR: Dir = include_dir!("..\\packages\\lito\\dist");

fn main() -> Result<()> {
check_webview_installation()?;
Expand Down
30 changes: 30 additions & 0 deletions windows/version.rc
@@ -0,0 +1,30 @@
#define VER 0,1,0,0
#define VER_STR "0.1.0.0-beta.7\0"

1 VERSIONINFO

FILEVERSION VER
PRODUCTVERSION VER

BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "FileDescription", "A lightweight Apple Music client."
VALUE "FileVersion", VER_STR
VALUE "InternalName", "Lito Music"
VALUE "LegalCopyright", "See LICENSE in the repository."
VALUE "ProductName", "Lito Music"
VALUE "OriginalFilename", "lito.exe"
VALUE "ProductVersion", VER_STR
VALUE "ProductShortName", "Lito Music"
VALUE "Official Build", "0"
END
END

BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x0409, 1200, 0x0804, 1200
END
END

0 comments on commit 71f41f5

Please sign in to comment.