Skip to content

Commit

Permalink
[Fix] Quotes on default install path
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioislima committed Feb 24, 2022
1 parent f2d07f4 commit ce6dd59
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,13 @@ ipcMain.handle('install', async (event, params) => {
body: i18next.t('notify.install.startInstall', 'Installation Started')
})
return Game.get(appName, runner)
.install({ path, installDlcs, sdlList, platformToInstall, installLanguage })
.install({
path: path.replaceAll("'", ''),
installDlcs,
sdlList,
platformToInstall,
installLanguage
})
.then(async (res) => {
notify({
title,
Expand Down
2 changes: 1 addition & 1 deletion electron/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const getLegendaryVersion = async () => {
export const getHeroicVersion = () => {
const VERSION_NUMBER = app.getVersion()
const BETA_VERSION_NAME = 'Caesar Clown'
const STABLE_VERSION_NAME = 'Rayleigh'
const STABLE_VERSION_NAME = 'Oden'
const isBetaorAlpha =
VERSION_NUMBER.includes('alpha') || VERSION_NUMBER.includes('beta')
const VERSION_NAME = isBetaorAlpha ? BETA_VERSION_NAME : STABLE_VERSION_NAME
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "heroic",
"version": "2.2.0",
"version": "2.2.1",
"private": true,
"main": "public/main.js",
"homepage": "./",
Expand Down
2 changes: 1 addition & 1 deletion src/screens/Settings/components/GeneralSettings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export default function GeneralSettings({
title: t('box.default-install-path')
})
.then(({ path }: Path) =>
setDefaultInstallPath(path ? `'${path}'` : defaultInstallPath)
setDefaultInstallPath(path ? `${path}` : defaultInstallPath)
)
}
className="material-icons settings folder"
Expand Down

0 comments on commit ce6dd59

Please sign in to comment.