diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2017-07-30 12:36:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-30 12:36:20 -0700 |
commit | 930225ff2b8b6aada636f22f1c50406bc7e888a2 (patch) | |
tree | 0c68b4171d2e52bda9f2f8462a753ffe7b95be3a | |
parent | Merge branch 'appveyor-x86-builds' (diff) | |
parent | Appveyor: Create zip package with txt files (diff) | |
download | redshift-ng-930225ff2b8b6aada636f22f1c50406bc7e888a2.tar.gz redshift-ng-930225ff2b8b6aada636f22f1c50406bc7e888a2.tar.bz2 redshift-ng-930225ff2b8b6aada636f22f1c50406bc7e888a2.tar.xz |
Merge pull request #489 from jonls/appveyor-distcheck
Appveyor: Run distcheck and improve zip package
-rw-r--r-- | appveyor.yml | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/appveyor.yml b/appveyor.yml index 0ddef8c..045cec9 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -17,12 +17,24 @@ build_script: SET "ADD_PATH_CMD=C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin" ) - set PATH=C:\msys64\usr\bin;%ADD_PATH_CMD%;%PATH% +- set CONFIGURE_FLAGS=--disable-drm --disable-randr --disable-vidmode --enable-wingdi --disable-quartz --disable-geoclue --disable-geoclue2 --disable-corelocation --disable-gui --disable-ubuntu --disable-nls --host=%arch%-w64-mingw32 +- bash -lc "mkdir $APPVEYOR_BUILD_FOLDER/root" - bash -lc "cd $APPVEYOR_BUILD_FOLDER && ./bootstrap" -- bash -lc "cd $APPVEYOR_BUILD_FOLDER && ./configure --enable-static --disable-shared --disable-drm --disable-randr --disable-vidmode --enable-wingdi --disable-quartz --disable-geoclue --disable-geoclue2 --disable-corelocation --disable-gui --disable-ubuntu --disable-nls --host=$arch-w64-mingw32" -- bash -lc "cd $APPVEYOR_BUILD_FOLDER && make" +- bash -lc "cd $APPVEYOR_BUILD_FOLDER && ./configure --prefix=\"$APPVEYOR_BUILD_FOLDER/root\" $CONFIGURE_FLAGS" +- bash -lc "cd $APPVEYOR_BUILD_FOLDER && make distcheck DISTCHECK_CONFIGURE_FLAGS=\"$CONFIGURE_FLAGS\"" +- bash -lc "cd $APPVEYOR_BUILD_FOLDER && make install" after_build: -- cmd: >- - 7z a redshift-windows-%arch%.zip ./src/redshift.exe COPYING NEWS README.md +- ps: | + $ZIP_NAME = "redshift-windows-$env:arch" + $ZIP_FILE = "redshift-windows-$env:arch.zip" - appveyor PushArtifact redshift-windows-%arch%.zip + md $ZIP_NAME + Copy-Item -Path $env:APPVEYOR_BUILD_FOLDER\root\bin\redshift.exe -Destination $ZIP_NAME + Copy-Item -Path README.md -Destination $ZIP_NAME/README.txt + Copy-Item -Path NEWS.md -Destination $ZIP_NAME/NEWS.txt + Copy-Item -Path COPYING -Destination $ZIP_NAME/COPYING.txt + Copy-Item -Path redshift.conf.sample -Destination $ZIP_NAME + 7z a $ZIP_FILE $ZIP_NAME/ + +- ps: Push-AppveyorArtifact $ZIP_FILE |