Skip to content

Commit

Permalink
Put Windows-specific stuff into win directory
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiolo committed Nov 15, 2024
1 parent 37e7edf commit 66ece23
Show file tree
Hide file tree
Showing 16 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
run: msbuild.exe build/msw/wx_vc14.sln /p:Configuration=Release /p:Platform=x64 /p:RuntimeLibrary=MultiThreaded
- name: build TreeSheets
run: |
msbuild.exe TreeSheets\treesheets.sln /p:Configuration=Release /p:Platform=x64
msbuild.exe win\treesheets.sln /p:Configuration=Release /p:Platform=x64
Remove-Item TS\*.pdb
Remove-Item TS\*.ipdb
Remove-Item TS\*.iobj
Expand All @@ -80,7 +80,7 @@ jobs:
- name: Create installer
uses: joncloud/makensis-action@v4
with:
script-file: "TS_installer.nsi"
script-file: "win/TS_installer.nsi"
arguments: "/V3"
- name: upload build artifacts
if: github.ref == 'refs/heads/master'
Expand Down Expand Up @@ -109,9 +109,9 @@ jobs:
- uses: actions/checkout@v4
- name: Prepare Plist
run: |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $(date +'%Y%m%d%H%M%S')" osx/Info.plist
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $(date +'%Y.%m.%d')" osx/Info.plist
/usr/libexec/PlistBuddy -c "Set :LSMinimumSystemVersion $minmac" osx/Info.plist
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $(date +'%Y%m%d%H%M%S')" platforms/osx/Info.plist
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $(date +'%Y.%m.%d')" platforms/osx/Info.plist
/usr/libexec/PlistBuddy -c "Set :LSMinimumSystemVersion $minmac" platforms/osx/Info.plist
- name: cmake
run: cmake -S . -B _build -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="$minmac" -DCMAKE_INSTALL_PREFIX=macos-bundle
- name: Build TreeSheets
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Windows:
to Multithreaded
4. Build solution in both x64 Debug and Release
5. Close the wxWidgets solution
6. "treesheets" contains the Visual Studio 2022 files for treesheets, open the .sln.
6. `platforms/win32` contains the Visual Studio 2022 files for treesheets, open the .sln.
If you've done the above correctly, TreeSheets will now compile and pick up
the wxWidgets libraries.
7. To distribute, build an installer with `TS_installer.nsi` (requires nsis.sourceforge.net)
Expand Down
2 changes: 1 addition & 1 deletion src/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
#include "tools.h"

#ifdef _WIN32
#include "..\treesheets\resource.h"
#include "..\win\resource.h"
#include "StackWalker\StackWalkerHelpers.h"
#endif

Expand Down
14 changes: 7 additions & 7 deletions TS_installer.nsi → win/TS_installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
!include "MUI2.nsh"
!define MUI_FINISHPAGE_RUN "$INSTDIR\TreeSheets.exe"
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "TreeSheets\tsinst.bmp"
!define MUI_ICON "TreeSheets\icon1.ico"
!define MUI_HEADERIMAGE_BITMAP "tsinst.bmp"
!define MUI_ICON "icon1.ico"
/*
doesn't show?
!define MUI_HEADERIMAGE_UNBITMAP "TreeSheets\tsinst.bmp"
!define MUI_HEADERIMAGE_UNBITMAP "tsinst.bmp"
*/

Unicode true
Expand Down Expand Up @@ -49,12 +49,12 @@ SetCompressor /SOLID lzma
AddBrandingImage top 65
Function ba
File TreeSheets\dot3.bmp
SetBrandingImage TreeSheets\dot3.bmp
File dot3.bmp
SetBrandingImage dot3.bmp
FunctionEnd
Function un.ba
SetBrandingImage TreeSheets\dot3.bmp
SetBrandingImage dot3.bmp
FunctionEnd
*/

Expand Down Expand Up @@ -83,7 +83,7 @@ Section "TreeSheets (required)"

SetOutPath $INSTDIR

File /r "TS\*.*"
File /r "..\..\TS\*.*"

WriteRegStr HKCU SOFTWARE\TreeSheets "Install_Dir" "$INSTDIR"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 66ece23

Please sign in to comment.