Skip to content

Commit

Permalink
romvault.json: change persist to file copy for files that are deleted…
Browse files Browse the repository at this point in the history
…/recreated when changed
  • Loading branch information
elisimpson committed Apr 4, 2024
1 parent 9094aee commit e0c59cf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions bucket/romvault.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
"hash": "3c887f15a83db25241063cd19522467ee26aa62fa9b47dbc76054b567d961307",
"pre_install": [
"Get-ChildItem $dir -Filter ROMVault*.exe | ForEach-Object { Rename-Item $_.FullName ROMVault.exe }",
"'RomVault3cfg.xml', 'RomVault.Cache', 'graphics.zip' | ForEach-Object {",
" if (!(Test-Path $persist_dir\\$_)) { New-Item $dir\\$_ | Out-Null } }"
"'RomVault3cfg.xml', 'RomVault.Cache' | ForEach-Object {",
" Copy-Item $persist_dir\\$_ $dir -Force -ErrorAction SilentlyContinue }"
],
"pre_uninstall": [
"'RomVault3cfg.xml', 'RomVault.Cache' | ForEach-Object {",
" Copy-Item $dir\\$_ $persist_dir -Force -ErrorAction SilentlyContinue }"
],
"shortcuts": [
[
Expand All @@ -17,8 +21,6 @@
]
],
"persist": [
"RomVault3cfg.xml",
"RomVault.Cache",
"graphics.zip",
"DATRoot",
"ROMRoot",
Expand Down

0 comments on commit e0c59cf

Please sign in to comment.