Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
windows ....
  • Loading branch information
cleverca22 committed Feb 7, 2019
1 parent 7abee13 commit 201f26e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion installers/common/WindowsInstaller.hs
Expand Up @@ -50,11 +50,12 @@ writeUninstallerNSIS (Version fullVersion) installerConfig = do
IO.writeFile "uninstaller.nsi" $ nsis $ do
_ <- constantStr "Version" (str $ unpack fullVersion)
_ <- constantStr "InstallDir" (str $ unpack $ installDirectory installerConfig)
_ <- constantStr "dollar" (str "$")
mapM_ unsafeInjectGlobal
[ "LangString UninstallName ${LANG_ENGLISH} \"Uninstaller\""
, "LangString UninstallName ${LANG_JAPANESE} \"アンインストーラー\""
]
name "$InstallDir $$(UninstallName) $Version"
name "$InstallDir $dollar(UninstallName) $Version"
outFile . str . encodeString $ tempDir </> "tempinstaller.exe"
unsafeInjectGlobal "Unicode true"
unsafeInjectGlobal "!addplugindir \"nsis_plugins\\liteFirewall\\bin\""
Expand Down Expand Up @@ -227,6 +228,8 @@ packageFrontend cluster installerConfig = do
-- | The contract of `main` is not to produce unsigned installer binaries.
main :: Options -> IO ()
main opts@Options{..} = do
IO.hSetEncoding IO.stderr IO.utf8
IO.hSetEncoding IO.stdout IO.utf8
generateOSClusterConfigs "./dhall" "." opts
cp (fromText "launcher-config.yaml") (fromText "../launcher-config.yaml")

Expand Down

0 comments on commit 201f26e

Please sign in to comment.