Skip to content

Commit 29209c0

Browse files
committed
Update version to 1.5.2, adding support for app file protection regex.
1 parent 5fde001 commit 29209c0

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "destrostudios",
3-
"version": "1.5.1",
3+
"version": "1.5.2",
44
"description": "destrostudios cross-game launcher, offering the possibility to login, download, update and start games.",
55
"author": "destrostudios",
66
"license": "MIT",

src/main/local-apps.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ function checkNextLocalFileForDeletion(
7878
if (currentFileIndex < localFilePaths.length) {
7979
const localFilePath = localFilePaths[currentFileIndex];
8080
if (
81-
appFilesResponse.protections.indexOf(localFilePath) === -1 &&
81+
!appFilesResponse.protections.some((protection) =>
82+
localFilePath.match(protection),
83+
) &&
8284
!appFilesResponse.files.some((appFile) => appFile.path === localFilePath)
8385
) {
8486
shouldBeDeletedCallback(localFilePath);

src/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "destrostudios",
3-
"version": "1.5.1",
3+
"version": "1.5.2",
44
"description": "Destrostudios cross-game launcher, offering the possibility to login, download, update and start games.",
55
"author": "destrostudios",
66
"main": "electron-main.js",

0 commit comments

Comments
 (0)