git-lfs/appveyor.yml
Sebastian Schuberth c690255bb6 Embed the Git LFS icon and version information into the Windows executable
This fixes the display of the application icon in Windows' uninstall
dialog and allows Inno Setup to use the version information from the
executable.

Note that AppVeyor has windres.exe in all these locations:

C:\cygwin\bin\windres.exe
C:\cygwin64\bin\windres.exe
C:\MinGW\bin\windres.exe
C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin\windres.exe
C:\msys64\mingw32\bin\windres.exe
C:\msys64\mingw64\bin\windres.exe
C:\msys64\usr\bin\windres.exe
C:\Qt\Tools\mingw482_32\bin\windres.exe
C:\Qt\Tools\mingw491_32\bin\windres.exe
C:\Qt\Tools\mingw492_32\bin\windres.exe
C:\Qt\Tools\mingw530_32\bin\windres.exe
C:\Ruby193\DevKit\mingw\bin\windres.exe
C:\Ruby23\DevKit\mingw\bin\windres.exe
C:\Ruby23-x64\DevKit\mingw\bin\windres.exe

But only the Ruby versions work without giving an "preprocessing failed"
error.
2016-12-08 16:23:17 +01:00

35 lines
959 B
YAML

skip_branch_with_pr: true
environment:
GOPATH: $(HOMEDRIVE)$(HOMEPATH)\go
MSYSTEM: MINGW64
clone_folder: $(GOPATH)\src\github.com\git-lfs\git-lfs
install:
- echo $(GOPATH)
- rd C:\Go /s /q
- appveyor DownloadFile https://storage.googleapis.com/golang/go1.7.4.windows-amd64.zip
- 7z x go1.7.4.windows-amd64.zip -oC:\ >nul
- C:\go\bin\go version
- cinst InnoSetup -y
- set PATH="C:\Program Files (x86)\Inno Setup 5";%PATH%
build_script:
- C:\Ruby23\DevKit\mingw\bin\windres.exe script\windows-installer\resources.rc -o resources.syso
- bash --login -c 'GOARCH=386 script/bootstrap'
- mv bin\git-lfs.exe git-lfs-x86.exe
- bash --login -c 'GOARCH=amd64 script/bootstrap'
- mv bin\git-lfs.exe git-lfs-x64.exe
after_build:
- iscc script\windows-installer\inno-setup-git-lfs-installer.iss
test_script:
- bash --login script/cibuild
artifacts:
- path: git-lfs-x86.exe
- path: git-lfs-x64.exe
- path: git-lfs-windows-*.exe