Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set Appveyor to build Windows MSI (fixes #294)
- Loading branch information
1 parent
e554cda
commit 5ea8114
Showing
12 changed files
with
107 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
cache: | ||
- cache1 -> appveyor\cleanup-cache1.txt | ||
- cache2 -> appveyor\cleanup-cache1.txt, appveyor\cleanup-cache2.txt | ||
- cache3 -> appveyor\cleanup-cache1.txt, appveyor\cleanup-cache2.txt, appveyor\cleanup-cache3.txt | ||
|
||
install: | ||
- git submodule update --init | ||
- SET PATH=%APPDATA%\cabal\bin;C:\tools\msys64\mingw64\bin;C:\tools\msys64\usr\bin;C:\ProgramData\chocolatey\lib\ghc\tools\ghc-8.0.1\bin;C:\ProgramData\chocolatey\lib\cabal\tools;C:\Program Files (x86)/WiX Toolset v3.10\bin;%PATH% | ||
- SET PKG_CONFIG_PATH=C:\tools\msys64\mingw64\lib\pkgconfig | ||
- SET XDG_DATA_DIRS=C:\tools\msys64\mingw64\share | ||
- choco install ghc -version 8.0.1 | grep -v '^Extracting ' | ||
- cabal --version | ||
- choco install msys2 | grep -v '^Extracting ' | ||
- pacman --version | ||
- choco install wixtoolset | ||
- heat -? | grep version | ||
- choco install dejavufonts -version 2.35 | grep -v '^Extracting ' | ||
- pacman -S -q --noconfirm mingw64/mingw-w64-x86_64-pkg-config mingw64/mingw-w64-x86_64-gobject-introspection mingw64/mingw-w64-x86_64-gtksourceview3 mingw64/mingw-w64-x86_64-webkitgtk3 | ||
# The webkitgtk package still expects ICU 56 | ||
- curl -fsSL -o mingw-w64-x86_64-icu-56.1-1-any.pkg.tar.xz https://sourceforge.net/projects/msys2/files/REPOS/MINGW/x86_64/mingw-w64-x86_64-icu-56.1-1-any.pkg.tar.xz/download | ||
- pacman -U --noconfirm mingw-w64-x86_64-icu-56.1-1-any.pkg.tar.xz | ||
- curl -fsSL -o mingw-w64-x86_64-harfbuzz-1.2.7-1-any.pkg.tar.xz https://sourceforge.net/projects/msys2/files/REPOS/MINGW/x86_64/mingw-w64-x86_64-harfbuzz-1.2.7-1-any.pkg.tar.xz/download | ||
- pacman -U --noconfirm mingw-w64-x86_64-harfbuzz-1.2.7-1-any.pkg.tar.xz | ||
|
||
build_script: | ||
- chcp 65001 && bash -ex appveyor/build-some.sh | ||
|
||
artifacts: | ||
- path: win32/*.msi | ||
name: Leksah Windows Installer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/sh | ||
|
||
if [ ! -d cache1 ]; then | ||
cabal update | ||
cabal install alex happy aeson-pretty --disable-documentation | ||
cabal install vendor/haskell-gi-base vendor/haskell-gi --force-reinstalls | ||
cd vendor/haskell-gi/bindings | ||
ghc --make genBuildInfo.hs | ||
./genBuildInfo.exe GLib | ||
./genBuildInfo.exe Gio | ||
cabal install ./GLib ./Gio --force-reinstalls | ||
cd ../../.. | ||
mkdir cache1 | ||
mv $APPDATA/ghc $APPDATA/cabal cache1 | ||
elif [ ! -d cache2 ]; then | ||
mv cache1/* $APPDATA | ||
cabal update | ||
cabal install vendor/gi-gtk-hs vendor/ltk vendor/jsaddle-dom vendor/ghcjs-dom --force-reinstalls | ||
mkdir cache2 | ||
mv $APPDATA/ghc $APPDATA/cabal cache2 | ||
elif [ ! -d cache3 ]; then | ||
mv cache2/* $APPDATA | ||
cabal update | ||
cabal install ./ vendor/ltk vendor/leksah-server vendor/haskellVCSWrapper/vcswrapper vendor/haskellVCSGUI/vcsgui -fwebkit -f-yi -fpango -f-vty --only-dependencies | ||
mkdir cache3 | ||
mv $APPDATA/ghc $APPDATA/cabal cache3 | ||
else | ||
mv cache3/* $APPDATA | ||
cabal update | ||
./win32/makeinstaller.sh | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Change this file to clear appveyor cache1 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Change this file to clear appveyor cache2 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Change this file to clear appveyor cache3 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule haskell-gi
updated
39 files
Submodule jsaddle-dom
added at
099e41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters