Compare commits

...
Author SHA1 Message Date
Romain Vimont 8b829b0d5c Add metadata to scrcpy.exe for Windows
Refs <https://stackoverflow.com/a/708382/1987178>
2021-12-09 23:15:10 +01:00
Romain Vimont c57da7c79e Add icon to scrcpy.exe
The icon will be associated to scrcpy.exe in the Windows explorer.

The .ico was created using imagemagick:

    convert icon.png icon.ico

It is included as a binary for simplicity.

Refs #2815 <https://github.com/Genymobile/scrcpy/issues/2815>
2021-12-09 23:14:42 +01:00
5 changed files with 24 additions and 0 deletions
+2
View File
@@ -49,9 +49,11 @@ conf.set('_XOPEN_SOURCE', '700')
conf.set('_GNU_SOURCE', true) conf.set('_GNU_SOURCE', true)
if host_machine.system() == 'windows' if host_machine.system() == 'windows'
windows = import('windows')
src += [ src += [
'src/sys/win/file.c', 'src/sys/win/file.c',
'src/sys/win/process.c', 'src/sys/win/process.c',
windows.compile_resources('scrcpy-windows.rc'),
] ]
conf.set('_WIN32_WINNT', '0x0600') conf.set('_WIN32_WINNT', '0x0600')
conf.set('WINVER', '0x0600') conf.set('WINVER', '0x0600')
+20
View File
@@ -0,0 +1,20 @@
0 ICON "../data/icon.ico"
1 VERSIONINFO
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "FileDescription", "Display and control your Android device"
VALUE "InternalName", "scrcpy"
VALUE "LegalCopyright", "Romain Vimont, Genymobile"
VALUE "OriginalFilename", "scrcpy.exe"
VALUE "ProductName", "scrcpy"
VALUE "ProductVersion", "1.21"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1252
END
END
+1
View File
@@ -7,6 +7,7 @@ cpp = 'i686-w64-mingw32-g++'
ar = 'i686-w64-mingw32-ar' ar = 'i686-w64-mingw32-ar'
strip = 'i686-w64-mingw32-strip' strip = 'i686-w64-mingw32-strip'
pkgconfig = 'i686-w64-mingw32-pkg-config' pkgconfig = 'i686-w64-mingw32-pkg-config'
windres = 'i686-w64-mingw32-windres'
[host_machine] [host_machine]
system = 'windows' system = 'windows'
+1
View File
@@ -7,6 +7,7 @@ cpp = 'x86_64-w64-mingw32-g++'
ar = 'x86_64-w64-mingw32-ar' ar = 'x86_64-w64-mingw32-ar'
strip = 'x86_64-w64-mingw32-strip' strip = 'x86_64-w64-mingw32-strip'
pkgconfig = 'x86_64-w64-mingw32-pkg-config' pkgconfig = 'x86_64-w64-mingw32-pkg-config'
windres = 'x86_64-w64-mingw32-windres'
[host_machine] [host_machine]
system = 'windows' system = 'windows'
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB