Skip to content

Commit

Permalink
Linux deployment files
Browse files Browse the repository at this point in the history
  • Loading branch information
stfnp committed Dec 22, 2016
1 parent ebe1e36 commit 6dc81a8
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 16 deletions.
12 changes: 6 additions & 6 deletions deployment/linux/Readme.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Alternative A: Snap
===================
Problems with the snap package:

run snapcraft. Yeah.
- Access folders outside of /home?
- Large file size. Use Ubuntu app platform or KDE content snap?
- Looks weird, not like other applications. No group boxes for example.


Alternative B: Static build
===========================
Alternative: Static build
=========================

1. Install the following libraries (source: wolhsoft.ru/pgewiki/Building_static_Qt_5)

Expand Down
5 changes: 0 additions & 5 deletions deployment/linux/setup/gui/application.desktop

This file was deleted.

8 changes: 8 additions & 0 deletions deployment/linux/setup/gui/bow-simulator.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Desktop Entry]
Type=Application
Name=Bow Simulator
Exec=bow-simulator
Icon=${SNAP}/meta/gui/icon.png
Comment=Bow and arrow physics simulation
Categories=Education;Science;NumericalAnalysis;Physics;Engineering;Qt
MimeType=application/json
Binary file added deployment/linux/setup/gui/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions deployment/linux/snapcraft-ubuntu-app-platform.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: bow-simulator
version: 0.1.0
summary: Bow and arrow physics simulation
description: Bow Simulator allows you to create virtual bow designs and simulate their performance. It calculates a wide range of static and dynamic bow characteristics such as the draw curve, material stresses, arrow velocity and degree of efficiency. It can be used for evaluating and optimising bow designs before actually building them.

grade: stable
confinement: strict

apps:
bow-simulator:
command: desktop-launch bow-simulator
plugs: [platform, unity7, x11, home]

parts:
bow-simulator:
plugin: qmake
qt-version: qt5
options: [CONFIG += release]
source: ../../
after: [desktop-ubuntu-app-platform]

plugs:
platform:
interface: content
content: ubuntu-app-platform1
target: ubuntu-app-platform
default-provider: ubuntu-app-platform
5 changes: 4 additions & 1 deletion deployment/linux/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ version: 0.1.0
summary: Bow and arrow physics simulation
description: Bow Simulator allows you to create virtual bow designs and simulate their performance. It calculates a wide range of static and dynamic bow characteristics such as the draw curve, material stresses, arrow velocity and degree of efficiency. It can be used for evaluating and optimising bow designs before actually building them.

grade: stable
confinement: strict

apps:
bow-simulator:
command: desktop-launch bow-simulator
Expand All @@ -14,4 +17,4 @@ parts:
qt-version: qt5
options: [CONFIG += release]
source: ../../
after: [desktop-qt5]
after: [desktop-qt5]
8 changes: 4 additions & 4 deletions project.pro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
INCLUDEPATH += /mnt/Daten/Libraries/Eigen-3.3.1 \ # http://eigen.tuxfamily.org
/mnt/Daten/Libraries/Catch-1.5.9/include \ # https://github.com/philsquared/Catch
/mnt/Daten/Libraries/Jsoncons-0.99.5/src \ # https://github.com/danielaparker/jsoncons
/mnt/Daten/Libraries/Boost-1.62.0 \ # http://www.boost.org
INCLUDEPATH += /home/s/Libraries/Eigen-3.3.1 \ # http://eigen.tuxfamily.org
/home/s/Libraries/Catch-1.5.9/include \ # https://github.com/philsquared/Catch
/home/s/Libraries/Jsoncons-0.99.5/src \ # https://github.com/danielaparker/jsoncons
/home/s/Libraries/Boost-1.62.0 \ # http://www.boost.org

TARGET = bow-simulator
TEMPLATE = app
Expand Down

0 comments on commit 6dc81a8

Please sign in to comment.