Skip to content

Commit

Permalink
Fix it again
Browse files Browse the repository at this point in the history
  • Loading branch information
jimed-rand authored Dec 12, 2024
1 parent ea436f6 commit d743e70
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/webstorm-bin/webstorm-bin.pacscript
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit d743e70

Please sign in to comment.