-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
71 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#/bin/sh | ||
export QT_PLUGIN_PATH="$SNAP/plugins" | ||
export QML2_IMPORT_PATH="$SNAP/qml" | ||
export PATH="$SNAP/bin:$PATH" | ||
export LD_LIBRARY_PATH="$SNAP/lib:$LD_LIBRARY_PATH" | ||
exec "$@" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM ubuntu:16.04 | ||
|
||
WORKDIR /app | ||
|
||
RUN apt-get -qq update | ||
RUN apt-get install -qq sudo apt-utils | ||
|
||
RUN sudo apt-get update -qq | ||
RUN sudo apt-get install -qq curl p7zip-full git build-essential python snapcraft qt5-default | ||
ADD qt5-ubuntu.sh /qt5-ubuntu.sh | ||
RUN bash /qt5-ubuntu.sh /opt/qt5 extra-datavis3d extra-charts gamepad 3d base declarative graphicaleffects imageformats multimedia quickcontrols quickcontrols2 sensors svg tools translations xmlpatterns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
#!/bin/bash | ||
sudo apt-get update -qq | ||
sudo apt-get install -qq curl p7zip-full git | ||
sudo apt-get -qq build-dep qt5-default | ||
bash .travis/qt5-ubuntu.sh $(pwd) extra-charts 3d base declarative graphicaleffects imageformats multimedia quickcontrols quickcontrols2 sensors svg tools translations xmlpatterns | ||
export QTDIR=$(pwd)/5.7/gcc_64/ | ||
export QTDIR=/opt/qt5/5.9/gcc_64 | ||
export PATH=$QTDIR/bin:$PATH | ||
SNAP_DUMP=snapdump | ||
python configure.py | ||
qmake | ||
make | ||
cp -r $QTDIR/lib .snapcraft/ | ||
cp -r $QTDIR/plugins .snapcraft/ | ||
cp -r $QTDIR/qml .snapcraft/ | ||
cp neuronify .snapcraft/ | ||
make -j8 | ||
mkdir -p ${SNAP_DUMP} | ||
cp -r $QTDIR/bin ${SNAP_DUMP}/ | ||
cp -r $QTDIR/lib ${SNAP_DUMP}/ | ||
cp -r $QTDIR/plugins ${SNAP_DUMP}/ | ||
cp -r $QTDIR/plugins/platforms ${SNAP_DUMP}/ | ||
cp -r $QTDIR/qml ${SNAP_DUMP}/ | ||
cp atomify-lammps/atomify-lammps ${SNAP_DUMP}/bin/atomify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
Add the following to this folder before you snap: | ||
Add the following to the "./snapdump" folder before you snap: | ||
|
||
- neuronify (binary file) | ||
- atomify (binary file) | ||
- Qt lib directory | ||
- Qt plugins directory | ||
- Qt qml directory | ||
|
||
Run the following commands: | ||
|
||
snapcraft snap | ||
sudo snap install neuronify*.snap | ||
neuronify | ||
sudo snap install atomify*.snap | ||
atomify | ||
|
||
If everything works as expected, neuronify should run now. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,33 @@ | ||
name: atomify-lammps | ||
version: "2.0.4" | ||
name: atomify | ||
version: "2.0.5" | ||
summary: Atomify LAMMPS | ||
description: Editor for the molecular dynamics simulator LAMMPS | ||
confinement: strict | ||
grade: stable | ||
|
||
apps: | ||
neuronify: | ||
command: atomify-lammps | ||
plugs: ['unity7', 'x11', 'opengl', 'network', 'network-bind', 'home'] | ||
atomify: | ||
command: desktop-launch custom-qt-helper atomify | ||
plugs: ['unity7', 'x11', 'opengl', 'network', 'network-bind', 'home'] | ||
|
||
parts: | ||
qml: | ||
plugin: qt57 | ||
|
||
move: | ||
plugin: copy | ||
files: | ||
atomify-lammps: atomify-lammps | ||
lib: lib | ||
qml: qml | ||
plugins: plugins | ||
|
||
dep: | ||
plugin: nil | ||
stage-packages: | ||
- libc-bin | ||
- libxkbcommon0 | ||
- ttf-ubuntu-font-family | ||
- dmz-cursor-theme | ||
- light-themes | ||
- shared-mime-info | ||
- libgdk-pixbuf2.0-0 | ||
- libx11-xcb1 | ||
- libgl1-mesa-dev | ||
- libegl1-mesa | ||
- libxrender-dev | ||
- libgpg-error0 | ||
- libgcrypt20 | ||
- liblzma5 | ||
- libselinux1 | ||
- libpcre3 | ||
- zlib1g | ||
- libexpat1 | ||
- libc6 | ||
- libgcc1 | ||
- libgcc-5-dev | ||
- libstdc++6 | ||
- libxi6 | ||
- libuuid1 | ||
move: | ||
plugin: dump | ||
source: snapdump | ||
stage: | ||
- bin | ||
- lib | ||
- plugins | ||
- qml | ||
conf: | ||
plugin: dump | ||
source: .snapcraft | ||
stage: | ||
- bin | ||
helpers: | ||
plugin: nil | ||
after: | ||
- move # NOTE move and conf must be here due install error for desktop-qt5 otherwise | ||
- conf | ||
- desktop-qt5 | ||
|