From fd1e57c233240a9ccaf5de96425abb7aa1cc72ee Mon Sep 17 00:00:00 2001 From: Brian <18603393+brian6932@users.noreply.github.com> Date: Sun, 21 Jan 2024 18:54:29 -0500 Subject: [PATCH 1/2] libreoffice-pre: Add version 24.2.0.2 --- bucket/libreoffice-pre.json | 91 +++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 bucket/libreoffice-pre.json diff --git a/bucket/libreoffice-pre.json b/bucket/libreoffice-pre.json new file mode 100644 index 00000000000..3c4e9b95eb1 --- /dev/null +++ b/bucket/libreoffice-pre.json @@ -0,0 +1,91 @@ +{ + "version": "24.2.0.2", + "description": "Powerful and free office suite, a successor to OpenOffice(.org).", + "homepage": "https://libreoffice.org/", + "license": "MPL-2.0", + "suggest": { + "vcredist": "extras/vcredist2022" + }, + "notes": "If you are upgrading from portable version, you can migrate settings by copying \"$persist_dir\\Data\" to \"%AppData%\\LibreOffice\"", + "architecture": { + "64bit": { + "url": "https://downloadarchive.documentfoundation.org/libreoffice/old/24.2.0.2/win/x86_64/LibreOffice_24.2.0.2_Win_x86-64.msi#/dl.msi_", + "hash": "f1a4d72414d2f05698165a86ecc0bb310e54b192016ce62c791587fc0fe31851" + }, + "32bit": { + "url": "https://downloadarchive.documentfoundation.org/libreoffice/old/24.2.0.2/win/x86/LibreOffice_24.2.0.2_Win_x86.msi#/dl.msi_", + "hash": "b522511f6e5811e969a200acfb020cafba8669170876d4655541a475ff9f3af4" + }, + "arm64": { + "url": "https://downloadarchive.documentfoundation.org/libreoffice/old/24.2.0.2/win/aarch64/LibreOffice_24.2.0.2_Win_aarch64.msi#/dl.msi_", + "hash": "68d395ca55c2ec391bfb9270edbc1a755bc4410ee0f6ac578511c70933220250" + } + }, + "pre_install": [ + "# keeping files in 'LibreOffice' directory so that bundled font can work properly", + "$null = ensure \"$dir/LibreOffice/share/fonts\"", + "# usage: get_config ($name, $default). $default ==> set to what value if the value is empty (not being set before)", + "if (get_config USE_LESSMSI $false) {", + " # if 'use_lessmsi' is true", + " $null = Expand-MsiArchive \"$dir\\dl.msi_\" \"$dir\"", + " Move-Item \"$dir/Fonts\" \"$dir/LibreOffice/share/fonts/truetype\" -Force", + " Remove-Item \"$dir/System*\" -Recurse -Force", + "} else {", + " # if 'use_lessmsi' is false or not set", + " $null = Expand-MsiArchive \"$dir\\dl.msi_\" \"$dir\\LibreOffice\"", + " $null = Expand-MsiArchive \"$dir\\dl.msi_\" \"$dir\\LibreOffice\\share\\fonts\\truetype\" -ExtractDir 'Fonts'", + " Remove-Item \"$dir/LibreOffice/Fonts\", \"$dir/LibreOffice/System*\" -Recurse -Force", + "}", + "Remove-Item \"$dir/dl.msi_\"" + ], + "shortcuts": [ + [ + "LibreOffice/program/soffice.exe", + "LibreOffice/LibreOffice" + ], + [ + "LibreOffice/program/sbase.exe", + "LibreOffice/LibreOffice Base" + ], + [ + "LibreOffice/program/scalc.exe", + "LibreOffice/LibreOffice Calc" + ], + [ + "LibreOffice/program/sdraw.exe", + "LibreOffice/LibreOffice Draw" + ], + [ + "LibreOffice/program/simpress.exe", + "LibreOffice/LibreOffice Impress" + ], + [ + "LibreOffice/program/smath.exe", + "LibreOffice/LibreOffice Math" + ], + [ + "LibreOffice/program/swriter.exe", + "LibreOffice/LibreOffice Writer" + ] + ], + "checkver": { + "url": "https://downloadarchive.documentfoundation.org/libreoffice/old/latest/win/x86_64/", + "regex": "LibreOffice_([\\d.]+)_Win_x86-64.msi" + }, + "autoupdate": { + "architecture": { + "64bit": { + "url": "https://downloadarchive.documentfoundation.org/libreoffice/old/$version/win/x86_64/LibreOffice_$version_Win_x86-64.msi#/dl.msi_" + }, + "32bit": { + "url": "https://downloadarchive.documentfoundation.org/libreoffice/old/$version/win/x86/LibreOffice_$version_Win_x86.msi#/dl.msi_" + }, + "arm64": { + "url": "https://downloadarchive.documentfoundation.org/libreoffice/old/$version/win/aarch64/LibreOffice_$version_Win_aarch64.msi#/dl.msi_" + } + }, + "hash": { + "url": "$url.sha256" + } + } +} From 530af3feac8c1e7929531db9045598b8aa69af37 Mon Sep 17 00:00:00 2001 From: Brian <18603393+brian6932@users.noreply.github.com> Date: Wed, 31 Jan 2024 01:55:50 -0500 Subject: [PATCH 2/2] libreoffice-pre: Update to version 24.2.0.3 --- bucket/libreoffice-pre.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bucket/libreoffice-pre.json b/bucket/libreoffice-pre.json index 3c4e9b95eb1..85da0be3d4e 100644 --- a/bucket/libreoffice-pre.json +++ b/bucket/libreoffice-pre.json @@ -1,5 +1,5 @@ { - "version": "24.2.0.2", + "version": "24.2.0.3", "description": "Powerful and free office suite, a successor to OpenOffice(.org).", "homepage": "https://libreoffice.org/", "license": "MPL-2.0", @@ -9,16 +9,16 @@ "notes": "If you are upgrading from portable version, you can migrate settings by copying \"$persist_dir\\Data\" to \"%AppData%\\LibreOffice\"", "architecture": { "64bit": { - "url": "https://downloadarchive.documentfoundation.org/libreoffice/old/24.2.0.2/win/x86_64/LibreOffice_24.2.0.2_Win_x86-64.msi#/dl.msi_", - "hash": "f1a4d72414d2f05698165a86ecc0bb310e54b192016ce62c791587fc0fe31851" + "url": "https://downloadarchive.documentfoundation.org/libreoffice/old/24.2.0.3/win/x86_64/LibreOffice_24.2.0.3_Win_x86-64.msi#/dl.msi_", + "hash": "58dcf13d87ef1279f7229b69949b836b73ce5f039ddb54cdf091f8fea28cc9f2" }, "32bit": { - "url": "https://downloadarchive.documentfoundation.org/libreoffice/old/24.2.0.2/win/x86/LibreOffice_24.2.0.2_Win_x86.msi#/dl.msi_", - "hash": "b522511f6e5811e969a200acfb020cafba8669170876d4655541a475ff9f3af4" + "url": "https://downloadarchive.documentfoundation.org/libreoffice/old/24.2.0.3/win/x86/LibreOffice_24.2.0.3_Win_x86.msi#/dl.msi_", + "hash": "2d5f64647bb67bbe0393f774c29f83eff65241c4f89719057075097f30ff76ce" }, "arm64": { - "url": "https://downloadarchive.documentfoundation.org/libreoffice/old/24.2.0.2/win/aarch64/LibreOffice_24.2.0.2_Win_aarch64.msi#/dl.msi_", - "hash": "68d395ca55c2ec391bfb9270edbc1a755bc4410ee0f6ac578511c70933220250" + "url": "https://downloadarchive.documentfoundation.org/libreoffice/old/24.2.0.3/win/aarch64/LibreOffice_24.2.0.3_Win_aarch64.msi#/dl.msi_", + "hash": "0eb0cfa8183db4003fe361075d707c246ccb1e1d9ea0b5302deabd3df26e27b4" } }, "pre_install": [