资源拆分
This commit is contained in:
1 parent
f810e712ec
commit
83890faaea
38 files changed
+4586
-4144
No files matched your search
@@ -58,10 +58,10 @@ async function buildWindows() {
|
||||
const compiler = process.env.CXX || 'cl.exe'
|
||||
if (/cl(?:\.exe)?$/i.test(compiler)) {
|
||||
run(compiler, ['/nologo', '/std:c++17', '/O2', '/EHsc', '/utf-8', '/W4', ...commonSources, join(native, 'app_windows.cpp'),
|
||||
'/link', '/SUBSYSTEM:WINDOWS', `'/OUT:${executable}'`.replaceAll("'", ''), 'ws2_32.lib', 'comdlg32.lib', 'user32.lib', 'gdi32.lib'])
|
||||
'/link', '/SUBSYSTEM:WINDOWS', `'/OUT:${executable}'`.replaceAll("'", ''), 'ws2_32.lib', 'iphlpapi.lib', 'comdlg32.lib', 'user32.lib', 'gdi32.lib'])
|
||||
} else {
|
||||
run(compiler, ['-std=c++17', '-O2', '-Wall', '-Wextra', '-Werror', ...commonSources, join(native, 'app_windows.cpp'),
|
||||
'-municode', '-mwindows', '-lws2_32', '-lcomdlg32', '-o', executable])
|
||||
'-municode', '-mwindows', '-lws2_32', '-liphlpapi', '-lcomdlg32', '-o', executable])
|
||||
}
|
||||
await cp(join(root, 'connector', 'DISTRIBUTION.md'), join(packageDir, '使用说明.md'))
|
||||
console.log(`已生成 Windows 应用:${executable}`)
|
||||
|
||||
Reference in new issue
Block a user