Skip to content

Commit

Permalink
Install to /usr/ instead of /usr/local/ in .deb
Browse files Browse the repository at this point in the history
  • Loading branch information
leaf-node committed Jan 29, 2025
1 parent 7a2b113 commit a4835fd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions linux/oav-custom/compile
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ echo "Building .deb package..."

mkdir -p "${deb_dir}"
cd "${deb_dir}"
mkdir -p ./DEBIAN ./usr/local/{bin,lib/open-alert-viewer,share/applications,share/icons/hicolor/scalable/apps}/
mkdir -p ./DEBIAN ./usr/{bin,lib/open-alert-viewer,share/applications,share/icons/hicolor/scalable/apps}/
sed -e "s/VERSION/${version}/; s/ARCHITECTURE/${deb_arch}/; s/DEPENDS/${deb_depends}/" < ../linux/oav-custom/debian/control.template > DEBIAN/control
cp -R ../"${bundle_name}"/* usr/local/lib/open-alert-viewer/
ln -s ../lib/open-alert-viewer/open_alert_viewer usr/local/bin/open_alert_viewer
install -Dm644 ../assets/icon/open_alert_viewer_circle_full.svg usr/local/share/icons/hicolor/scalable/apps/studio.okcode.open_alert_viewer.svg
install -Dm644 ../linux/oav-custom/studio.okcode.open_alert_viewer.desktop usr/local/share/applications/studio.okcode.open_alert_viewer.desktop
cp -R ../"${bundle_name}"/* usr/lib/open-alert-viewer/
ln -s ../lib/open-alert-viewer/open_alert_viewer usr/bin/open_alert_viewer
install -Dm644 ../assets/icon/open_alert_viewer_circle_full.svg usr/share/icons/hicolor/scalable/apps/studio.okcode.open_alert_viewer.svg
install -Dm644 ../linux/oav-custom/studio.okcode.open_alert_viewer.desktop usr/share/applications/studio.okcode.open_alert_viewer.desktop
cd ..
dpkg-deb --build "${deb_dir}"
mv "${deb_dir}".deb open-alert-viewer-"${bundle_arch}"_"${version}".deb
Expand Down

0 comments on commit a4835fd

Please sign in to comment.