Skip to content

Commit

Permalink
Bump version to 3.2.5
Browse files Browse the repository at this point in the history
Also some minor tweaks/fixes to cmake and release script
  • Loading branch information
sirjuddington committed Dec 19, 2023
1 parent 89f07ed commit 0856e5a
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 16 deletions.
6 changes: 5 additions & 1 deletion cmake/win_msvc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,15 @@ add_executable(slade WIN32
${SLADE_HEADERS}
)

if(NOT SLADE_EXE_NAME)
set(SLADE_EXE_NAME SLADE)
endif()

# Properties
set_target_properties(slade
PROPERTIES
LINK_FLAGS "/subsystem:windows"
OUTPUT_NAME "SLADE"
OUTPUT_NAME "${SLADE_EXE_NAME}"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/dist"
)

Expand Down
10 changes: 8 additions & 2 deletions dist/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
find_program(ZIPTOOL_ZIP_EXECUTABLE zip)
find_program(ZIPTOOL_7Z_EXECUTABLE 7z "$ENV{ProgramFiles}/7-Zip")

if(WIN32 AND MSVC)
set(PK3_DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}) # Put it directly in dist/ on windows
else()
set(PK3_DESTINATION ${CMAKE_BINARY_DIR})
endif()

if(ZIPTOOL_7Z_EXECUTABLE)
set(ZIP_COMMAND "${ZIPTOOL_7Z_EXECUTABLE}" u -tzip -mtc- -mcu+ -mx=9 -r "${CMAKE_BINARY_DIR}/slade.pk3" .)
set(ZIP_COMMAND "${ZIPTOOL_7Z_EXECUTABLE}" u -tzip -mtc- -mcu+ -mx=9 -r "${PK3_DESTINATION}/slade.pk3" .)
elseif(ZIPTOOL_ZIP_EXECUTABLE)
if(NOT APPLE)
set(ZIP_COMMAND_CHARSET "-UN=UTF8")
endif()
set(ZIP_COMMAND "${ZIPTOOL_ZIP_EXECUTABLE}" -X ${ZIP_COMMAND_CHARSET} -9 -r "${CMAKE_BINARY_DIR}/slade.pk3" .)
set(ZIP_COMMAND "${ZIPTOOL_ZIP_EXECUTABLE}" -X ${ZIP_COMMAND_CHARSET} -9 -r "${PK3_OUTPUT}/slade.pk3" .)
else()
message(STATUS "no zip executable, slade.pk3 won't build")
endif()
Expand Down
16 changes: 10 additions & 6 deletions dist/makebuild.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$version = "3.2.4"
$version = "3.2.5"
$rev_short = Invoke-Expression "git.exe rev-parse --short HEAD"

# Check for 7-zip install
Expand All @@ -17,6 +17,9 @@ if ($userev.ToLower() -eq "y")
$version = "${version}_$rev_short"
}

<# SLADE is now built on Windows via cmake, not sure how to do it here properly yet
so will just build manually in VS for now
# Prompt to build SLADE
Write-Host "`nRebuild SLADE? (y/n) " -foregroundcolor cyan -nonewline
$buildbinaries = Read-Host
Expand Down Expand Up @@ -54,6 +57,7 @@ if ($buildbinaries.ToLower() -eq "y")
}
}
}
#>

# Determine release directory + platforms
$releasedir = "$PSScriptRoot\$version"
Expand Down Expand Up @@ -88,11 +92,11 @@ Write-Host "`nCopying SLADE files..." -foregroundcolor yellow
# Common
Copy-Item (resolve-path ".\slade.pk3") "$releasedir" -Force
# Win32
Copy-Item (resolve-path ".\SLADE.exe") "$releasedir32" -Force
Copy-Item (resolve-path ".\SLADE.pdb") "$releasedir32" -Force
Copy-Item (resolve-path ".\SLADE.exe") "$releasedir32" -Force
Copy-Item (resolve-path ".\SLADE.pdb") "$releasedir32" -Force
# x64
Copy-Item (resolve-path ".\SLADE-x64.exe") "$releasedir64\SLADE.exe" -Force
Copy-Item (resolve-path ".\SLADE-x64.pdb") "$releasedir64\SLADE.pdb" -Force
Copy-Item (resolve-path ".\SLADE-x64.exe") "$releasedir64\SLADE.exe" -Force
Copy-Item (resolve-path ".\SLADE-x64.pdb") "$releasedir64" -Force
Write-Host "Done" -foregroundcolor green

# Prompt to build binaries 7z
Expand Down Expand Up @@ -121,7 +125,7 @@ if ($buildbinaries.ToLower() -eq "y")
Write-Host "`nBuiling x64 binaries 7z..." -foregroundcolor yellow
& $7zpath a -t7z "$releasedir\slade_${version}_x64${timestamp}.7z" `
"$releasedir64\SLADE.exe" `
"$releasedir64\SLADE.pdb" `
"$releasedir64\SLADE-x64.pdb" `
"$releasedir\slade.pk3"
Write-Host "Done" -foregroundcolor green
}
Expand Down
8 changes: 4 additions & 4 deletions msvc/SLADE.rc
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 3,2,4
PRODUCTVERSION 3,2,4
FILEVERSION 3,2,5
PRODUCTVERSION 3,2,5
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -68,12 +68,12 @@ BEGIN
BLOCK "0c0904b0"
BEGIN
VALUE "FileDescription", "SLADE"
VALUE "FileVersion", "3.2.4"
VALUE "FileVersion", "3.2.5"
VALUE "InternalName", "SLADE.exe"
VALUE "LegalCopyright", "Copyright (C) 2023"
VALUE "OriginalFilename", "SLADE.exe"
VALUE "ProductName", "SLADE"
VALUE "ProductVersion", "3.2.4"
VALUE "ProductVersion", "3.2.5"
END
END
BLOCK "VarFileInfo"
Expand Down
1 change: 1 addition & 0 deletions net.mancubus.SLADE.metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
</screenshot>
</screenshots>
<releases>
<release date="2023-12-19" version="3.2.5"/>
<release date="2023-06-21" version="3.2.4"/>
<release date="2023-05-31" version="3.2.3"/>
<release date="2023-04-01" version="3.2.2"/>
Expand Down
2 changes: 1 addition & 1 deletion src/Application/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ bool exiting = false;
std::thread::id main_thread_id;

// Version
Version version_num{ 3, 2, 4, 0 };
Version version_num{ 3, 2, 5, 0 };

// Directory paths
string dir_data;
Expand Down
2 changes: 1 addition & 1 deletion win_installer/SLADE-x64.iss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ OutputBaseFilename=Setup_{#MyAppName}_{#MyAppVersion}_x64

[Files]
Source: "..\dist\SLADE-x64.exe"; DestName: "SLADE.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\dist\SLADE-x64.pdb"; DestName: "SLADE.pdb"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\dist\SLADE-x64.pdb"; DestName: "SLADE-x64.pdb"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\dist\slade.pk3"; DestDir: "{app}"; Flags: ignoreversion

#include "include/Icons.iss"
Expand Down
2 changes: 1 addition & 1 deletion win_installer/include/Defines.iss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#define MyAppName "SLADE"
#define MyAppVersion "3.2.4"
#define MyAppVersion "3.2.5"
#define MyAppURL "https://slade.mancubus.net"
#define MyAppExeName "SLADE.exe"
#define MyAppPublisher "sirjuddington"

0 comments on commit 0856e5a

Please sign in to comment.