Skip to content

Commit

Permalink
Added build-installer target to build-win64.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Logaev <[email protected]>
  • Loading branch information
mxlgv committed Mar 6, 2024
1 parent 4350280 commit 3848cf3
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 720 deletions.
10 changes: 10 additions & 0 deletions README-WIN64.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ Build on Windows (x86_64)
```
Note: the build script has some other options, their description can be found using the `--help`.

Build Windows Installer (NSIS)
------------
Before this, you must build the project according to the instructions above. It's worth making sure that `windows-installer/dist-win64` is not empty.
Now you should run:
```sh
./build-win64.sh --build-installer
```
The builded installer will be available in the directory `windows-installer/dino-installer.exe`.
Resources
---------
- Check out the [Dino website](https://dino.im).
Expand Down
15 changes: 15 additions & 0 deletions build-win64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ dist_install()
msg "Removing redudant header files"
rm -rf $DIST_DIR/include

msg "Copy LICENSE"
cp -f ${PWD}/LICENSE $DIST_DIR/LICENSE

msg "Copy icons, themes, locales and fonts"
cp -f ${PWD}/main/dino.ico $DIST_DIR/dino.ico
cp -rf /mingw64/share/xml $DIST_DIR/share
mkdir -p $DIST_DIR/etc/fonts && cp -r /mingw64/etc/fonts $DIST_DIR/etc/
mkdir -p $DIST_DIR/share/icons && cp -r /mingw64/share/icons $DIST_DIR/share/
Expand All @@ -118,6 +122,15 @@ dist_install()
msg "Successfully installed!"
}

build_installer()
{
msg "Building an installer for Windows using NSIS"
cd windows-installer
makensis dino.nsi
msg "Installer successfully builded!"
cd ..
}

clean()
{
rm -rf build $DIST_DIR
Expand All @@ -132,6 +145,7 @@ usage: $0 [OPTION]
--configure configure the project
--build build the project
--dist-install install the builded project
--build-installer build installer (using NSIS)
--clean remove build artifacts
--help show this help
Expand All @@ -149,6 +163,7 @@ case $1 in
"--configure" ) configure ;;
"--build" ) build ;;
"--dist-install" ) dist_install ;;
"--build-installer") build_installer ;;
"--clean" ) clean ;;
"--help" ) help ;;
"" )
Expand Down
Loading

0 comments on commit 3848cf3

Please sign in to comment.