Skip to content

Commit

Permalink
add deb package
Browse files Browse the repository at this point in the history
  • Loading branch information
andrescv committed Sep 3, 2019
1 parent a037083 commit a454e1d
Show file tree
Hide file tree
Showing 13 changed files with 97 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/deb/debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
jupiter (3.1) bionic; urgency=medium

* Fix known bugs, add -cache option

-- Andrés Castellanos <[email protected]> Tue, 03 Sep 2019 11:29:52 -0600

jupiter (3.0) bionic; urgency=medium

* Initial release

-- Andrés Castellanos <[email protected]> Sun, 28 Jul 2019 12:33:41 -0600
1 change: 1 addition & 0 deletions src/deb/debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
14 changes: 14 additions & 0 deletions src/deb/debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Source: jupiter
Section: education
Priority: optional
Maintainer: Andrés Castellanos <[email protected]>
Build-Depends: debhelper (>= 9)
Standards-Version: 4.1.2
Homepage: https://riscvsim.com/
Vcs-Git: https://github.com/andrescv/Jupiter.git
Vcs-Browser: https://github.com/andrescv/Jupiter

Package: jupiter
Architecture: amd64
Depends: ${shlibs:Depends}, ${misc:Depends}, unzip, wget
Description: RISC-V Assembler and Runtime Simulator
28 changes: 28 additions & 0 deletions src/deb/debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: jupiter
Source: https://github.com/andrescv/Jupiter

Files: files/*
Copyright: 2018-2019 Andrés Castellanos <[email protected]>
License: GPL-3.0+

Files: debian/*
Copyright: 2018-2019 Andrés Castellanos <[email protected]>
License: GPL-3.0+

License: GPL-3.0+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
1 change: 1 addition & 0 deletions src/deb/debian/files
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
jupiter_3.1_source.buildinfo education optional
1 change: 1 addition & 0 deletions src/deb/debian/install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
files/usr/* usr
15 changes: 15 additions & 0 deletions src/deb/debian/preinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh

VERSION=3.1
URL="https://github.com/andrescv/Jupiter/releases/download/v$VERSION/Jupiter-$VERSION-linux.zip"

cd /opt
rm -f jupiter
wget "$URL" -O jupiter.zip
unzip jupiter.zip
rm -f jupiter.zip
mv image jupiter

#DEBHELPER#

exit 0
7 changes: 7 additions & 0 deletions src/deb/debian/prerm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

rm -rf /opt/jupiter

#DEBHELPER#

exit 0
4 changes: 4 additions & 0 deletions src/deb/debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/make -f

%:
dh $@
1 change: 1 addition & 0 deletions src/deb/debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (native)
3 changes: 3 additions & 0 deletions src/deb/files/usr/bin/jupiter
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

/opt/jupiter/bin/java --add-exports javafx.controls/com.sun.javafx.scene.control=com.jfoenix --add-exports javafx.controls/com.sun.javafx.scene.control.behavior=com.jfoenix --add-exports javafx.graphics/com.sun.javafx.scene=com.jfoenix --add-exports javafx.base/com.sun.javafx.event=com.jfoenix -m jupiter/jupiter.Jupiter "$@"
11 changes: 11 additions & 0 deletions src/deb/files/usr/share/applications/jupiter.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Name=Jupiter
GenericName=RISC-V Assembler & Runtime Simulator
Icon=/usr/share/pixmaps/jupiter.png
TryExec=jupiter
Exec=jupiter %U
Terminal=false
Categories=Utility;TextEditor;Development;IDE;
MimeType=text/plain;inode/directory;
Keywords=jupiter;
Binary file added src/deb/files/usr/share/pixmaps/jupiter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a454e1d

Please sign in to comment.