From d743e70172604239e8cdb3ec8fa867a061d157df Mon Sep 17 00:00:00 2001 From: "James \"Jim\" Ed Randson" <053476233@ecampus.ut.ac.id> Date: Thu, 12 Dec 2024 12:02:15 +0700 Subject: [PATCH] Fix it again --- packages/webstorm-bin/webstorm-bin.pacscript | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/packages/webstorm-bin/webstorm-bin.pacscript b/packages/webstorm-bin/webstorm-bin.pacscript index f42d74ea95..f150853158 100644 --- a/packages/webstorm-bin/webstorm-bin.pacscript +++ b/packages/webstorm-bin/webstorm-bin.pacscript @@ -12,15 +12,26 @@ repology=("project: webstorm") external_connection=true package() { - cd "${srcdir}/webstorm-${pkgver}" + cd "${srcdir}/WebStorm-243.22562.112" || { echo "Directory not found"; exit 1; } + mkdir -p "${pkgdir}/usr/share/licenses/webstorm" mkdir -p "${pkgdir}/usr/share/webstorm" mkdir -p "${pkgdir}/usr/share/pixmaps" + + for item in bin jbr lib plugins product-info.json license; do + if [ ! -e "$item" ]; then + echo "Error: $item not found" + exit 1 + fi + done + cp -dr --no-preserve='ownership' bin jbr lib plugins product-info.json "${pkgdir}/usr/share/webstorm/" cp -dr --no-preserve='ownership' license "${pkgdir}/usr/share/licenses/webstorm/" cp -dr "${pkgdir}/usr/share/webstorm/bin/webstorm.png" "${pkgdir}/usr/share/pixmaps/" + mkdir -p "${pkgdir}/usr/bin" ln -sf "/usr/share/webstorm/bin/webstorm.sh" "${pkgdir}/usr/bin/webstorm" + mkdir -p "${pkgdir}/usr/share/applications/" cat << EOF > "${pkgdir}/usr/share/applications/webstorm.desktop" [Desktop Entry]