Skip to content

Commit

Permalink
added msys2 projectGenerator packaging. (#6696)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofTheo authored Mar 2, 2021
1 parent 845fc85 commit 119adff
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/dev/create_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,6 @@ function createPackage {
#remove devApps folder
rm -r $pkg_ofroot/apps/devApps

#remove projectGenerator folder
if [ "$pkg_platform" = "msys2" ]; then
rm -rf $pkg_ofroot/apps/projectGenerator
fi

cd $pkg_ofroot/examples

#delete ios examples in other platforms
Expand Down Expand Up @@ -405,7 +400,7 @@ function createPackage {
echo "Creating projectGenerator"
mkdir -p $HOME/.tmp
export TMPDIR=$HOME/.tmp
if [ "$pkg_platform" = "vs2015" ] || [ "$pkg_platform" = "vs2017" ]; then
if [ "$pkg_platform" = "vs2015" ] || [ "$pkg_platform" = "vs2017" ] || [ "$pkg_platform" = "msys2" ]; then
cd ${pkg_ofroot}/apps/projectGenerator/frontend
npm install > /dev/null
npm run build:vs > /dev/null
Expand All @@ -417,7 +412,12 @@ function createPackage {
unzip projectGenerator-vs.zip 2> /dev/null
rm projectGenerator-vs.zip
cd ${pkg_ofroot}
sed -i "s/osx/vs/g" projectGenerator-vs/resources/app/settings.json
mv projectGenerator-vs projectGenerator
if [ "$pkg_platform" = "msys2" ]; then
sed -i "s/osx/msys2/g" projectGenerator/resources/app/settings.json
else
sed -i "s/osx/vs/g" projectGenerator/resources/app/settings.json
fi
fi

if [ "$pkg_platform" = "osx" ]; then
Expand Down

0 comments on commit 119adff

Please sign in to comment.