Skip to content

Commit ca1ae06

Browse files
author
Kasper Peeters
committed
Final tweaks, and turning off the console on windows.
1 parent c7f63ef commit ca1ae06

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,4 +576,11 @@ if(APPIMAGE_MODE)
576576
)
577577
endif()
578578

579+
if(WIN32)
580+
add_custom_target(windows-installer
581+
COMMAND cpack
582+
COMMAND "/c/Program Files (x86)/Windows Kits/10/App Certification Kit/signtool" sign /v /n "Kasper Peeters" /tr http://timestamp.globalsign.com/?signature=sha2 /td sha256 cadabra2-${CADABRA_VERSION_MAJOR}.${CADABRA_VERSION_MINOR}.${CADABRA_VERSION_PATCH}-win64.exe
583+
)
584+
endif()
585+
579586
print_header("All scripts completed")

README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,11 @@ Checkout Cadabra and build::
416416
ninja install
417417

418418
This will leave an installation in `Program Files (x86)/Cadabra`, from where
419-
you can start `cadabra2-gtk`.
419+
you can start `cadabra2-gtk`.
420420

421+
To build an installer, simply run `cpack` after having built
422+
Cadabra. To sign the installer, you need `signtool` from the Windows
423+
SDK, available from https://go.microsoft.com/fwlink/?LinkID=698771.
421424

422425

423426
Building a Jupyter kernel

frontend/gtkmm/main.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#include <stdlib.h>
1212
#endif
1313

14+
#define NDEBUG 1
15+
1416
// Cadabra frontend with GTK+ interface (using gtkmm).
1517
// Makes use of the client classes in the client_server directory.
1618

0 commit comments

Comments
 (0)