-
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
1 changed file
with
14 additions
and
8 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 |
---|---|---|
|
@@ -38,15 +38,15 @@ echo "GIT_HASH = ${GIT_HASH}" | |
echo "Will install npm and global packages" | ||
yum update | ||
yum install -y npm zip | ||
npm install -g [email protected] | ||
npm install uglify-js -g | ||
npm install uglifycss -g | ||
npm install cmake-js -g | ||
npm install -g --unsafe-perm=true --allow-root [email protected] | ||
npm install -g --unsafe-perm=true --allow-root uglify-js | ||
npm install -g --unsafe-perm=true --allow-root uglifycss | ||
npm install -g --unsafe-perm=true --allow-root cmake-js | ||
|
||
echo "Will install local npm packages" | ||
npm install --save-dev node-addon-api --arch=x64 | ||
npm install electron --arch=x64 | ||
npm install --save-dev electron-packager | ||
npm install --save-dev --unsafe-perm=true --allow-root electron-packager | ||
|
||
echo "CWD" | ||
pwd | ||
|
@@ -68,18 +68,24 @@ fi | |
echo "ls" | ||
ls | ||
|
||
echo "ls ${CmakeBuildDir}" | ||
echo "ls ${CmakeBuildDir} (CmakeBuildDir)" | ||
ls ${CmakeBuildDir} | ||
|
||
echo "ls ${WorkingDir}" | ||
echo "ls ${WorkingDir} (WorkingDir)" | ||
ls ${WorkingDir} | ||
cd ${WorkingDir} | ||
echo "Changed to: $(pwd)" | ||
|
||
if [ -d "${WorkingDir}/app" ]; then | ||
echo "app was a valid working directory" | ||
rm -rf "${WorkingDir}/app" | ||
else | ||
echo "There was no app directory in cwd" | ||
fi | ||
|
||
cp -r "${CmakeBuildDir}/app" . | ||
echo "Will try to copy app dir from ${CmakeBuildDir} to $(cwd)." | ||
cp -r "${CmakeBuildDir}/app" "${WorkingDir}/" | ||
echo "Have copied app dir from ${CmakeBuildDir} to ${WorkingDir}/." | ||
|
||
echo "About to package" | ||
|
||
|