add package script and install howto
This commit is contained in:
40
INSTALL.md
Normal file
40
INSTALL.md
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
# Installing slide
|
||||||
|
|
||||||
|
## Install dependencies
|
||||||
|
|
||||||
|
This project depends on the following dynamically linked libraries:
|
||||||
|
|
||||||
|
* qt5
|
||||||
|
* libexif
|
||||||
|
|
||||||
|
### OSX
|
||||||
|
|
||||||
|
```
|
||||||
|
brew install qt libexif
|
||||||
|
```
|
||||||
|
|
||||||
|
### Raspbian Stretch
|
||||||
|
|
||||||
|
```
|
||||||
|
brew install qt5 libexif12
|
||||||
|
```
|
||||||
|
|
||||||
|
## Extract binaries
|
||||||
|
|
||||||
|
```
|
||||||
|
tar xf slide_<arch>_<version>.tar.gz
|
||||||
|
```
|
||||||
|
|
||||||
|
## Move binary to executable folder
|
||||||
|
|
||||||
|
### OSX
|
||||||
|
|
||||||
|
```
|
||||||
|
mv slide_<version>/slide.app/Contents/MacOS/slide /usr/bin/
|
||||||
|
```
|
||||||
|
|
||||||
|
### Linux
|
||||||
|
|
||||||
|
```
|
||||||
|
mv slide_<version>/slide /usr/bin/
|
||||||
|
```
|
||||||
32
sbin/package.sh
Executable file
32
sbin/package.sh
Executable file
@@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||||
|
ARCH=$1
|
||||||
|
VERSION=$2
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
if [[ "$ARCH" == "" ]]; then
|
||||||
|
echo "missing argument target_architecture"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if [[ "$VERSION" == "" ]]; then
|
||||||
|
echo "missing argument version"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
BINARY=slide
|
||||||
|
if [[ "$ARCH" == "osx" ]]; then
|
||||||
|
BINARY=slide.app
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd "$DIR/.."
|
||||||
|
mkdir -p make/slide_$VERSION
|
||||||
|
cd make
|
||||||
|
qmake ../src/slide.pro
|
||||||
|
make
|
||||||
|
cp -r "$BINARY" "slide_$VERSION/"
|
||||||
|
cp "../INSTALL.md" "slide_$VERSION/"
|
||||||
|
cp "../LICENSE" "slide_$VERSION/"
|
||||||
|
tar cfz slide_${ARCH}_$VERSION.tar.gz "slide_$VERSION"
|
||||||
Reference in New Issue
Block a user