File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1+ {-# LANGUAGE CPP #-}
12{-# LANGUAGE RecordWildCards #-}
23
34import Control.Applicative
@@ -172,7 +173,11 @@ rules global@Global{..} args = do
172173 entries <- forM stageFiles $ \ stageFile -> do
173174 Zip. readEntry
174175 [Zip. OptLocation
176+ #if MIN_VERSION_zip_archive(0,3,0)
177+ (dropFileName (dropDirectoryPrefix (releaseStageDir </> binaryName) stageFile))
178+ #else
175179 (dropDirectoryPrefix (releaseStageDir </> binaryName) stageFile)
180+ #endif
176181 False ]
177182 stageFile
178183 let archive = foldr Zip. addEntryToArchive Zip. emptyArchive entries
Original file line number Diff line number Diff line change @@ -13,5 +13,5 @@ if errorlevel 1 exit /b
1313cd %BUILD_DIR%
1414%RELEASE_SCRIPT% --no-test-haddocks --arch=i386 %1 %2 %3 %4 %5 %6 %7 %8 %9 release
1515if errorlevel 1 exit /b
16- %RELEASE_SCRIPT% --no-test-haddocks --arch=x86_64 %2 %3 %4 %5 %6 %7 %8 %9 release
16+ %RELEASE_SCRIPT% --no-test-haddocks --arch=x86_64 %1 % 2 %3 %4 %5 %6 %7 %8 %9 release
1717if errorlevel 1 exit /b
You can’t perform that action at this time.
0 commit comments