Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Small bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SushyDev committed Dec 20, 2020
1 parent 8547374 commit a5ef77b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/js/components/updater/updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ if (!isDev) {
//Run exe
(async () => {
await setTimeout(async () => {
await exec(path.join(localStorage.getItem('downloadDir'), fileName));
await exec(`start "" "${path.join(localStorage.getItem('downloadDir'), fileName)}`);
}, 250);
//Close vaporstore
setTimeout(() => {
Expand Down
5 changes: 3 additions & 2 deletions app/js/installed.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function gameListExec(gameTitle, targetFolder, fileName, launchDefault) {
data['list'].forEach((game) => {
if (game.fileName == fileName) {
if (!!game.default) {
gamePlay(game.default);
gamePlay(path.resolve(game.default));
} else {
listExec();
}
Expand Down Expand Up @@ -160,8 +160,9 @@ function gameListExec(gameTitle, targetFolder, fileName, launchDefault) {
}

function gamePlay(executable) {
console.log('exec', executable);
var exec = require('child_process').exec;
exec(executable, (err, data) => {
exec(`start "" "${executable}"`, (err, data) => {
console.log(err);
});
}
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": "vapor-store",
"version": "2.0.0-beta-27",
"version": "2.0.0-beta-28",
"description": "Vapor Store",
"author": "SushyDev",
"main": "app.js",
Expand Down

0 comments on commit a5ef77b

Please sign in to comment.