File tree Expand file tree Collapse file tree 4 files changed +27
-11
lines changed
Expand file tree Collapse file tree 4 files changed +27
-11
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,8 @@ use std::error::Error;
22
33use crate :: common:: * ;
44
5- const PACKAGE : & str = "graphite-desktop-platform-linux" ;
6-
75pub fn main ( ) -> Result < ( ) , Box < dyn Error > > {
8- let app_bin = build_bin ( PACKAGE , None ) ?;
6+ let app_bin = build_bin ( "graphite-desktop-platform-linux" , None ) ?;
97
108 // TODO: Implement bundling for linux
119
Original file line number Diff line number Diff line change @@ -7,9 +7,6 @@ use crate::common::*;
77
88const APP_ID : & str = "art.graphite.Graphite" ;
99
10- const PACKAGE : & str = "graphite-desktop-platform-mac" ;
11- const HELPER_BIN : & str = "helper" ;
12-
1310const ICONS_FILE_NAME : & str = "graphite.icns" ;
1411
1512const EXEC_PATH : & str = "Contents/MacOS" ;
@@ -18,8 +15,8 @@ const RESOURCES_PATH: &str = "Contents/Resources";
1815const CEF_FRAMEWORK : & str = "Chromium Embedded Framework.framework" ;
1916
2017pub fn main ( ) -> Result < ( ) , Box < dyn Error > > {
21- let app_bin = build_bin ( PACKAGE , None ) ?;
22- let helper_bin = build_bin ( PACKAGE , Some ( HELPER_BIN ) ) ?;
18+ let app_bin = build_bin ( "graphite-desktop-platform-mac" , None ) ?;
19+ let helper_bin = build_bin ( "graphite-desktop-platform-mac" , Some ( "helper" ) ) ?;
2320
2421 let profile_path = profile_path ( ) ;
2522 let app_dir = bundle ( & profile_path, & app_bin, & helper_bin) ;
Original file line number Diff line number Diff line change @@ -4,11 +4,10 @@ use std::path::{Path, PathBuf};
44
55use crate :: common:: * ;
66
7- const PACKAGE : & str = "graphite-desktop-platform-win" ;
8- const EXECUTABLE : & str = "graphite.exe" ;
7+ const EXECUTABLE : & str = "Graphite.exe" ;
98
109pub fn main ( ) -> Result < ( ) , Box < dyn Error > > {
11- let app_bin = build_bin ( PACKAGE , None ) ?;
10+ let app_bin = build_bin ( "graphite-desktop-platform-win" , None ) ?;
1211
1312 let executable = bundle ( & profile_path ( ) , & app_bin) ;
1413
Original file line number Diff line number Diff line change @@ -2,8 +2,30 @@ fn main() {
22 #[ cfg( target_os = "windows" ) ]
33 {
44 let mut res = winres:: WindowsResource :: new ( ) ;
5+
56 res. set_icon ( "../../../branding/app-icons/graphite.ico" ) ;
7+
8+ res. set_language ( 0x0409 ) ; // English (US)
9+
10+ // TODO: Replace with actual version
11+ res. set_version_info ( winres:: VersionInfo :: FILEVERSION , {
12+ const MAJOR : u64 = 0 ;
13+ const MINOR : u64 = 999 ;
14+ const PATCH : u64 = 0 ;
15+ const RELEASE : u64 = 0 ;
16+ ( MAJOR << 48 ) | ( MINOR << 32 ) | ( PATCH << 16 ) | RELEASE
17+ } ) ;
18+ res. set ( "FileVersion" , "0.999.0.0" ) ;
19+ res. set ( "ProductVersion" , "0.999.0.0" ) ;
20+
21+ res. set ( "OriginalFilename" , "Graphite.exe" ) ;
22+
23+ res. set ( "FileDescription" , "Graphite" ) ;
624 res. set ( "ProductName" , "Graphite" ) ;
25+
26+ res. set ( "LegalCopyright" , "Copyright © 2025 Graphite Labs, LLC" ) ;
27+ res. set ( "CompanyName" , "Graphite Labs, LLC" ) ;
28+
729 res. compile ( ) . expect ( "Failed to compile Windows resources" ) ;
830 }
931}
You can’t perform that action at this time.
0 commit comments