Skip to content
Snippets Groups Projects
Commit d65749d2 authored by Emanuel Borsboom's avatar Emanuel Borsboom
Browse files

release.hs: upload raw binary with '.bin' extension

parent 87fec279
No related branches found
No related tags found
No related merge requests found
......@@ -339,7 +339,7 @@ rules global@Global{..} args = do
_ -> [binaryExeFileName, binaryPkgTarGzFileName]
binaryPkgZipFileName = binaryName <.> zipExt
binaryPkgTarGzFileName = binaryName <.> tarGzExt
binaryExeFileName = binaryName <.> exe
binaryExeFileName = binaryName <.> binaryExt
binaryName =
concat
[ stackProgName
......@@ -359,12 +359,15 @@ rules global@Global{..} args = do
ascExt = ".asc"
sha256Ext = ".sha256"
uploadExt = ".upload"
binaryExt =
case platformOS of
Windows -> ".exe"
_ -> ".bin"
-- | Upload file to Github release.
uploadToGithubRelease :: Global -> FilePath -> Maybe String -> Action ()
uploadToGithubRelease global@Global{..} file mUploadLabel = do
-- TODO: consider using https://github.com/tfausak/github-release
need [file]
putNormal $ "Uploading to Github: " ++ file
GithubRelease{..} <- getGithubRelease
resp <- liftIO $ callGithubApi global
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment