Skip to content

Commit

Permalink
add: linux installer
Browse files Browse the repository at this point in the history
  • Loading branch information
singjc committed Feb 21, 2024
1 parent 5804085 commit f789a9d
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dist-scripts/linux/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Package: massdash
Version: 0.0.8
Architecture: all
Maintainer: Röst Lab
Description: MassDash
A web-based dashboard for streamlined DIA-MS visualization, analysis, prototyping, and optimization. https://github.com/Roestlab/massdash
XB-Desktop-File: massdash.desktop

18 changes: 18 additions & 0 deletions dist-scripts/linux/create_linux_installer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh

# This script is used to create the Linux installer for the application.

rm -rf dist
rm -rf build

pyinstaller massdash.spec -y

mkdir -p dist/massdash_linux/usr/local/bin
mv dist/massdash dist/massdash_linux/usr/local/bin/massdash
mkdir dist/massdash_linux/DEBIAN
mkdir -p dist/massdash_linux/usr/share/applications
mkdir -p dist/massdash_linux/usr/share/icons
cp ../linux/massdash.desktop dist/massdash_linux/usr/share/applications/massdash.desktop
cp ../../massdash/assets/img/MassDash_Logo.ico dist/massdash_linux/usr/share/icons/massdash.ico
cp ../linux/control dist/massdash_linux/DEBIAN/control
dpkg-deb --build --root-owner-group dist/massdash_linux
7 changes: 7 additions & 0 deletions dist-scripts/linux/massdash.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[Desktop Entry]
Version=0.0.8
Type=Application
Name=massdash
Exec=dist/massdash_linux/usr/local/bin/massdash
Icon=dist/massdash_linux/usr/share/icons/massdash.ico
Terminal=false

0 comments on commit f789a9d

Please sign in to comment.