Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions bucket/aegisub.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"extract_dir": "aegisub-portable",
"pre_install": [
"# Hardlinks won't work properly here to persist files, because this app creates a new file instead of writing to the existing one.",
"'config.json' | ForEach-Object {",
" if (Test-Path -LiteralPath \"$persist_dir\\$_\" -PathType Leaf) {",
" Copy-Item -Path \"$persist_dir\\$_\" -Destination \"$dir\\$_\" -Force",
"Get-ChildItem -LiteralPath \"$persist_dir\" -File | Where-Object { $_.Name -notin @('manifest.json', 'install.json') } | ForEach-Object {",
" if (Test-Path -LiteralPath \"$persist_dir\\$($_.Name)\" -PathType Leaf) {",
" Copy-Item -Path \"$persist_dir\\$($_.Name)\" -Destination \"$dir\\$($_.Name)\" -Force",
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
" }",
"}"
],
Expand All @@ -47,10 +47,10 @@
],
"pre_uninstall": [
"# Hardlinks won't work properly here to persist files, because this app creates a new file instead of writing to the existing one.",
"'config.json' | ForEach-Object {",
" if (Test-Path -LiteralPath \"$dir\\$_\" -PathType Leaf) {",
"Get-ChildItem -LiteralPath \"$dir\" -File | Where-Object { $_.Name -notin @('manifest.json', 'install.json') } | ForEach-Object {",
" if (Test-Path -LiteralPath \"$dir\\$($_.Name)\" -PathType Leaf) {",
" ensure $persist_dir | Out-Null",
" Copy-Item -Path \"$dir\\$_\" -Destination \"$persist_dir\\$_\" -Force",
" Copy-Item -Path \"$dir\\$($_.Name)\" -Destination \"$persist_dir\\$($_.Name)\" -Force",
" }",
"}"
],
Expand Down
Loading