-
Notifications
You must be signed in to change notification settings - Fork 2
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
Dmnk Freemountainer
authored and
Dmnk Freemountainer
committed
Nov 28, 2016
1 parent
4c10338
commit a2ec3da
Showing
1 changed file
with
21 additions
and
2 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 |
---|---|---|
@@ -1,7 +1,26 @@ | ||
#!/bin/bash | ||
|
||
PROJECT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../" | ||
TARGET_APP=$1 | ||
TARGET_PATH=$(dirname "$TARGET_APP") | ||
TARGET_APP=$(realpath $1) | ||
TARGET_PATH= $(dirname "$TARGET_APP") | ||
|
||
OS="$($PROJECT_PATH/tools/uname.sh -o)" | ||
ARCH="$($PROJECT_PATH/tools/uname.sh -a)" | ||
BIN_PATH="$PROJECT_PATH/tmp/bin-$OS-$ARCH" | ||
|
||
DEPLOY_CMD="$BIN_PATH/linuxdeployqt" | ||
NODE_CMD="$BIN_PATH/node.exe" | ||
NPM_CMD="$BIN_PATH/npm" | ||
PRUNE_CMD="$NODE_CMD $NPM_CMD prune --production" | ||
|
||
pushd . > /dev/null | ||
|
||
cd "$TARGET_PATH/node_path" | ||
$PRUNE_CMD | ||
|
||
cd "$TARGET_PATH/default" | ||
$PRUNE_CMD | ||
|
||
popd > /dev/null | ||
|
||
windeployqt $TARGET_APP --compiler-runtime --release --qmldir=$PROJECT_PATH/src/qml |