l4d2modmanager: Fix persist with a pre_install script (#620)

Co-authored-by: ClassicDarkChocolate <>
master
ClassicDarkChocolate 2022-05-12 05:34:11 +08:00 committed by GitHub
parent 8ac1024e60
commit 576c7b51d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,10 @@
"license": "MIT",
"url": "https://github.com/xavier-cai/L4D2ModManager/raw/master/Release/Release.zip",
"hash": "1d6ee3be4ecad84f9a7afdb4616f0d37973750c5884711352fa4b7ce5ae6b348",
"pre_install": [
"if (!(Test-Path -Path \"$persist_dir\\list-box.ini\")) { New-Item -Path \"$dir\" -Name \"list-box.ini\" -Value \"[]\" | Out-Null }",
"if (!(Test-Path -Path \"$persist_dir\\view-list.ini\")) { New-Item -Path \"$dir\" -Name \"view-list.ini\" -Value \"[]\" | Out-Null }"
],
"shortcuts": [
[
"L4D2ModManager.exe",