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

Commit 71f41f5

Browse files
committed
Fix Windows version info
1 parent f61af11 commit 71f41f5

File tree

6 files changed

+34
-34
lines changed

6 files changed

+34
-34
lines changed

darwin/LitoMusic/LitoMusic.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
B71F1E9B26FE141C00A9DAA2 /* WDBSetWebSecurityEnabled.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WDBSetWebSecurityEnabled.m; sourceTree = "<group>"; };
3535
B71F1E9F26FE2DE600A9DAA2 /* VisualEffectView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VisualEffectView.swift; sourceTree = "<group>"; };
3636
B71F1EA326FEFE7C00A9DAA2 /* LitoSchemeHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LitoSchemeHandler.swift; sourceTree = "<group>"; };
37-
B71F1EA826FF1F9F00A9DAA2 /* dist */ = {isa = PBXFileReference; lastKnownFileType = folder; name = dist; path = ../../dist; sourceTree = "<group>"; };
37+
B71F1EA826FF1F9F00A9DAA2 /* dist */ = {isa = PBXFileReference; lastKnownFileType = folder; name = dist; path = ../../packages/lito/dist; sourceTree = "<group>"; };
3838
B7A197AD26FF34930066BCDC /* WKWebView+Hook.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "WKWebView+Hook.m"; sourceTree = "<group>"; };
3939
B7A197BD2700157A0066BCDC /* ParsedArgs.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ParsedArgs.swift; sourceTree = "<group>"; };
4040
/* End PBXFileReference section */

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"install": "cd packages/lito && npm install",
66
"dev:web": "cd packages/lito && npm start",
77
"dev:windows": "cd windows && cargo run",
8-
"build:web": "rm -rf dist && cd packages/lito && npm run build && mv dist ../..",
8+
"build:web": "cd packages/lito && npm run build",
99
"build:windows": "npm run build:web && cd windows && cargo build --target x86_64-pc-windows-msvc --release",
1010
"build:darwin": "npm run build:web && make -C darwin"
1111
}

windows/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ extern crate embed_resource;
22

33
fn main() {
44
embed_resource::compile("lito-manifest.rc");
5+
embed_resource::compile("version.rc");
56
}

windows/lito-manifest.rc

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,4 @@
1-
#define VER 0,1,0,0
2-
#define VER_STR "0.1.0.0-beta.7\0"
3-
41
#define RT_MANIFEST 24
52
1 RT_MANIFEST "lito.exe.manifest"
63

74
IDI_APPLICATION ICON "icon.ico"
8-
9-
2 VERSIONINFO
10-
11-
FILEVERSION VER
12-
PRODUCTVERSION VER
13-
14-
BEGIN
15-
BLOCK "StringFileInfo"
16-
BEGIN
17-
BLOCK "040904E4"
18-
BEGIN
19-
VALUE "FileDescription", "A lightweight Apple Music client."
20-
VALUE "FileVersion", VER_STR
21-
VALUE "InternalName", "Lito Music"
22-
VALUE "LegalCopyright", "See LICENSE.txt in the repository."
23-
VALUE "ProductName", "Lito Music"
24-
VALUE "OriginalFilename", "lito.exe"
25-
VALUE "ProductVersion", VER_STR
26-
VALUE "ProductShortName", "Lito Music"
27-
VALUE "Official Build", "0"
28-
END
29-
END
30-
31-
BLOCK "VarFileInfo"
32-
BEGIN
33-
VALUE "Translation", 0x0409, 1200, 0x0804, 1200
34-
END
35-
END

windows/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const APP_URL: &str = if DEBUG {
3838
};
3939

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

4343
fn main() -> Result<()> {
4444
check_webview_installation()?;

windows/version.rc

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#define VER 0,1,0,0
2+
#define VER_STR "0.1.0.0-beta.7\0"
3+
4+
1 VERSIONINFO
5+
6+
FILEVERSION VER
7+
PRODUCTVERSION VER
8+
9+
BEGIN
10+
BLOCK "StringFileInfo"
11+
BEGIN
12+
BLOCK "040904E4"
13+
BEGIN
14+
VALUE "FileDescription", "A lightweight Apple Music client."
15+
VALUE "FileVersion", VER_STR
16+
VALUE "InternalName", "Lito Music"
17+
VALUE "LegalCopyright", "See LICENSE in the repository."
18+
VALUE "ProductName", "Lito Music"
19+
VALUE "OriginalFilename", "lito.exe"
20+
VALUE "ProductVersion", VER_STR
21+
VALUE "ProductShortName", "Lito Music"
22+
VALUE "Official Build", "0"
23+
END
24+
END
25+
26+
BLOCK "VarFileInfo"
27+
BEGIN
28+
VALUE "Translation", 0x0409, 1200, 0x0804, 1200
29+
END
30+
END

0 commit comments

Comments
 (0)