From fcf32dc34b2ce6e24e8238f4ed2d32818c781b4f Mon Sep 17 00:00:00 2001 From: candrapersada <36833664+candrapersada@users.noreply.github.com> Date: Sun, 14 May 2023 14:06:27 +0700 Subject: [PATCH 1/8] Add Motrix Portable Add Motrix use Data Portable --- bucket/motrix.json | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/bucket/motrix.json b/bucket/motrix.json index b5ef6fbb95fb5a..da2786796e2914 100644 --- a/bucket/motrix.json +++ b/bucket/motrix.json @@ -9,14 +9,21 @@ "hash": "sha512:b8af895ba86f77ed5837b8a65580ec828b45fab647998bc1c82dc82426b857340a4306fc5222a6fb64c0f1c338bb221b90d8f563c7c7aa87d46664722ad56ab9", "pre_install": [ "Expand-7zipArchive \"$dir\\`$PLUGINSDIR\\app-64.7z\" \"$dir\"", - "Remove-Item \"$dir\\`$*\" -Force -Recurse" + "Remove-Item \"$dir\\`$*\" -Force -Recurse", + "if (Test-Path \"$env:AppData\\motrix\") {", + " info '[Persistent AppData]: Moving user data...'", + " ensure \"$persist_dir\\UserData\" | Out-Null", + " Copy-Item \"$env:AppData\\motrix\\*\" \"$persist_dir\\UserData\\\" -Recurse -Force -ErrorAction 'SilentlyContinue'", + " Remove-Item \"$env:AppData\\motrix\" -Recurse -Force -ErrorAction 'SilentlyContinue'", + "}" ] } }, "shortcuts": [ [ "Motrix.exe", - "Motrix" + "Motrix", + "--user-data-dir=\"$persist_dir\\UserData\"" ] ], "checkver": { From 2903b86c0c6c39bff37778b9f307d1facc0e51b6 Mon Sep 17 00:00:00 2001 From: candrapersada <36833664+candrapersada@users.noreply.github.com> Date: Sun, 14 May 2023 14:22:59 +0700 Subject: [PATCH 2/8] FreeTube Portable --- bucket/freetube.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bucket/freetube.json b/bucket/freetube.json index b87f13e7edd864..97e65de017e510 100644 --- a/bucket/freetube.json +++ b/bucket/freetube.json @@ -13,10 +13,19 @@ "hash": "f2cdfc564c66cc3476f97e8f7e4aa084671bb576e61ae7e54ca71de88b55f611" } }, + "pre_install": [ + "if (Test-Path \"$env:AppData\\freetube\") {", + " info '[Persistent AppData]: Moving user data...'", + " ensure \"$persist_dir\\UserData\" | Out-Null", + " Copy-Item \"$env:AppData\\freetube\\*\" \"$persist_dir\\UserData\\\" -Recurse -Force -ErrorAction 'SilentlyContinue'", + " Remove-Item \"$env:AppData\\freetube\" -Recurse -Force -ErrorAction 'SilentlyContinue'", + "}" + ], "shortcuts": [ [ "FreeTube.exe", - "FreeTube" + "FreeTube", + "--user-data-dir=\"$persist_dir\\UserData\"" ] ], "checkver": { From 0354d3f58594cdd0a402fbf6f7320e75275c6aab Mon Sep 17 00:00:00 2001 From: candrapersada <36833664+candrapersada@users.noreply.github.com> Date: Sun, 14 May 2023 14:31:40 +0700 Subject: [PATCH 3/8] Update freetube.json --- bucket/freetube.json | 1 + 1 file changed, 1 insertion(+) diff --git a/bucket/freetube.json b/bucket/freetube.json index 97e65de017e510..11ad3da1ea2ecf 100644 --- a/bucket/freetube.json +++ b/bucket/freetube.json @@ -28,6 +28,7 @@ "--user-data-dir=\"$persist_dir\\UserData\"" ] ], + "persist": "UserData", "checkver": { "url": "https://github.com/FreeTubeApp/FreeTube/tags", "regex": "v([\\w.-]+)" From 3520124b0301e8dca5f4a6f4714c482f162f86bd Mon Sep 17 00:00:00 2001 From: candrapersada <36833664+candrapersada@users.noreply.github.com> Date: Sun, 14 May 2023 14:32:22 +0700 Subject: [PATCH 4/8] Update motrix.json --- bucket/motrix.json | 1 + 1 file changed, 1 insertion(+) diff --git a/bucket/motrix.json b/bucket/motrix.json index da2786796e2914..b6788558ae8c6d 100644 --- a/bucket/motrix.json +++ b/bucket/motrix.json @@ -26,6 +26,7 @@ "--user-data-dir=\"$persist_dir\\UserData\"" ] ], + "persist": "UserData", "checkver": { "github": "https://github.com/agalwood/Motrix" }, From 86faa15193b0885f1820af6f1d306017b66f10ec Mon Sep 17 00:00:00 2001 From: candrapersada <36833664+candrapersada@users.noreply.github.com> Date: Sun, 14 May 2023 15:11:05 +0700 Subject: [PATCH 5/8] Update freetube.json --- bucket/freetube.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bucket/freetube.json b/bucket/freetube.json index 11ad3da1ea2ecf..b35cc74e7ca081 100644 --- a/bucket/freetube.json +++ b/bucket/freetube.json @@ -28,11 +28,11 @@ "--user-data-dir=\"$persist_dir\\UserData\"" ] ], - "persist": "UserData", "checkver": { "url": "https://github.com/FreeTubeApp/FreeTube/tags", "regex": "v([\\w.-]+)" }, + "persist": "UserData", "autoupdate": { "architecture": { "64bit": { From acd21e8463e4fb86abbb0d7e0289e48535200fb4 Mon Sep 17 00:00:00 2001 From: candrapersada <36833664+candrapersada@users.noreply.github.com> Date: Sun, 14 May 2023 15:27:41 +0700 Subject: [PATCH 6/8] Update motrix.json --- bucket/motrix.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bucket/motrix.json b/bucket/motrix.json index b6788558ae8c6d..0f545407cdede9 100644 --- a/bucket/motrix.json +++ b/bucket/motrix.json @@ -26,10 +26,10 @@ "--user-data-dir=\"$persist_dir\\UserData\"" ] ], - "persist": "UserData", "checkver": { "github": "https://github.com/agalwood/Motrix" }, + "persist": "UserData", "autoupdate": { "architecture": { "64bit": { From 381b6085d93b79ea378d580461d7c4dce78a819f Mon Sep 17 00:00:00 2001 From: candrapersada <36833664+candrapersada@users.noreply.github.com> Date: Sun, 14 May 2023 15:44:44 +0700 Subject: [PATCH 7/8] Update freetube.json --- bucket/freetube.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bucket/freetube.json b/bucket/freetube.json index b35cc74e7ca081..9c27c95dffff86 100644 --- a/bucket/freetube.json +++ b/bucket/freetube.json @@ -13,7 +13,7 @@ "hash": "f2cdfc564c66cc3476f97e8f7e4aa084671bb576e61ae7e54ca71de88b55f611" } }, - "pre_install": [ + "pre_install": [ "if (Test-Path \"$env:AppData\\freetube\") {", " info '[Persistent AppData]: Moving user data...'", " ensure \"$persist_dir\\UserData\" | Out-Null", From 377e15e1ea0f8581376528e703aba2b7da2bf22c Mon Sep 17 00:00:00 2001 From: candrapersada <36833664+candrapersada@users.noreply.github.com> Date: Sun, 14 May 2023 16:00:33 +0700 Subject: [PATCH 8/8] Update freetube.json --- bucket/freetube.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bucket/freetube.json b/bucket/freetube.json index 9c27c95dffff86..b35cc74e7ca081 100644 --- a/bucket/freetube.json +++ b/bucket/freetube.json @@ -13,7 +13,7 @@ "hash": "f2cdfc564c66cc3476f97e8f7e4aa084671bb576e61ae7e54ca71de88b55f611" } }, - "pre_install": [ + "pre_install": [ "if (Test-Path \"$env:AppData\\freetube\") {", " info '[Persistent AppData]: Moving user data...'", " ensure \"$persist_dir\\UserData\" | Out-Null",