build: building windows releases with .pdb files now to debug customer crashes with .dmp files
This commit is contained in:
@@ -425,6 +425,10 @@ if (WIN32)
|
||||
set_target_properties(${APP_PROJECT_NAME} PROPERTIES COMPILE_DEFINITIONS_RELWITHDEBINFO "_CONSOLE")
|
||||
set_target_properties(${APP_PROJECT_NAME} PROPERTIES LINK_FLAGS_RELEASE "/ENTRY:\"mainCRTStartup\" /SUBSYSTEM:WINDOWS")
|
||||
set_target_properties(${APP_PROJECT_NAME} PROPERTIES LINK_FLAGS_MINSIZEREL "/SUBSYSTEM:WINDOWS")
|
||||
|
||||
# generate pdb for release build
|
||||
set_target_properties(${APP_PROJECT_NAME} PROPERTIES LINK_FLAGS_RELEASE "/DEBUG")
|
||||
set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Zi")
|
||||
else ()
|
||||
add_executable(${APP_PROJECT_NAME} ${APP_FILES})
|
||||
endif ()
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<DirectoryRef Id='INSTALLDIR'>
|
||||
|
||||
<Component Id='MainExecutable' Guid='A6136907-B3C5-4393-88D7-2ACF63E138A8' Win64="$(var.Win64)">
|
||||
<File Id='CoatiEXE' Name='Coati.exe' DiskId='1' Source='$(var.PlatformSourceFolder)/Coati_obfuscated.exe' KeyPath='yes' />
|
||||
<File Id='CoatiEXE' Name='Coati.exe' DiskId='1' Source='$(var.PlatformSourceFolder)/Coati.exe' KeyPath='yes' />
|
||||
|
||||
<!-- File association -->
|
||||
<RegistryValue Root="HKLM" Key="SOFTWARE\Classes\[ProductName].Document" Name="projectfile" Value="Coati project file" Type="string" />
|
||||
|
||||
+10
-22
@@ -1,7 +1,6 @@
|
||||
# FLAGS
|
||||
CLEAN_AND_SETUP=true
|
||||
REBUILD=true
|
||||
OBFUSCATE=true
|
||||
UPDATE_DATABASES=true
|
||||
|
||||
|
||||
@@ -27,11 +26,6 @@ if [ $REBUILD = false ]; then
|
||||
read -p "Press [Enter] key to continue"
|
||||
fi
|
||||
|
||||
if [ $OBFUSCATE = false ]; then
|
||||
echo -e "$INFO OBFUSCATE flag is set to false. Do you want to proceed?"
|
||||
read -p "Press [Enter] key to continue"
|
||||
fi
|
||||
|
||||
if [ $UPDATE_DATABASES = false ]; then
|
||||
echo -e "$INFO UPDATE_DATABASES flag is set to false. Do you want to proceed?"
|
||||
read -p "Press [Enter] key to continue"
|
||||
@@ -90,7 +84,7 @@ if [ $UPDATE_DATABASES = true ]; then
|
||||
echo -e "$INFO saving license key"
|
||||
../build/win32/Release/app/Coati.exe -z ../script/license.txt
|
||||
|
||||
echo -e "$INFO creating database for tictactie"
|
||||
echo -e "$INFO creating database for tictactoe"
|
||||
../build/win32/Release/app/Coati.exe -p ../bin/app/user/projects/tictactoe/tictactoe.coatiproject -d
|
||||
|
||||
echo -e "$INFO creating database for tutorial"
|
||||
@@ -104,21 +98,6 @@ if [ $UPDATE_DATABASES = true ]; then
|
||||
fi
|
||||
|
||||
|
||||
# OBFUSCATING THE EXECUTABLES
|
||||
if [ $OBFUSCATE = true ]; then
|
||||
echo -e "$INFO obfuscating the executable (32 bit)"
|
||||
rm build/win32/Release/app/Coati_obfuscated.exe
|
||||
upx --brute -o build/win32/Release/app/Coati_obfuscated.exe build/win32/Release/app/Coati.exe
|
||||
|
||||
echo -e "$INFO obfuscating the executable (64 bit)"
|
||||
rm build/win64/Release/app/Coati_obfuscated.exe
|
||||
upx --brute -o build/win64/Release/app/Coati_obfuscated.exe build/win64/Release/app/Coati.exe
|
||||
else
|
||||
cp build/win32/Release/app/Coati.exe build/win32/Release/app/Coati_obfuscated.exe
|
||||
cp build/win64/Release/app/Coati.exe build/win64/Release/app/Coati_obfuscated.exe
|
||||
fi
|
||||
|
||||
|
||||
# BUILDING THE INSTALLER
|
||||
cd deployment/windows/wixSetup
|
||||
build_win32.sh
|
||||
@@ -185,8 +164,17 @@ cp -u -r ide_plugins/vs/coati_plugin_vs.vsix $APP_PACKAGE_DIR_WIN64/plugins/visu
|
||||
# PACKAGING COATI
|
||||
echo -e "$INFO packaging coati"
|
||||
cd ./release/
|
||||
|
||||
winrar a -afzip Coati_${VERSION_STRING}_Windows_32bit.zip $APP_PACKAGE_NAME_WIN32
|
||||
winrar a -afzip Coati_${VERSION_STRING}_Windows_64bit.zip $APP_PACKAGE_NAME_WIN64
|
||||
|
||||
|
||||
# STORING PDB FILES
|
||||
mkdir PDB_${APP_PACKAGE_NAME_WIN32}
|
||||
cp -u -r ../build/win32/Release/app/Coati.pdb PDB_${APP_PACKAGE_NAME_WIN32}/
|
||||
mkdir PDB_${APP_PACKAGE_NAME_WIN64}
|
||||
cp -u -r ../build/win64/Release/app/Coati.pdb PDB_${APP_PACKAGE_NAME_WIN64}/
|
||||
|
||||
cd ../
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user