Skip to content

Commit 7940bc2

Browse files
committed
fixed some cwd issues
1 parent 8d5ac3e commit 7940bc2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

build/mac/buildDmg.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,15 +203,16 @@ rm -Rf Kivy3.dmg
203203
sed -i '' "s;3.5.0;$PYTHON_VERSION;g" create-osx-bundle.sh
204204
sed -i '' "s;python3.5;$PYTHON_EXEC_VERSION;g" create-osx-bundle.sh
205205
sed -i '' "s;rm {};rm -f {};g" create-osx-bundle.sh
206+
206207
./create-osx-bundle.sh ${kivyVersion} ${PYTHON_VERSION}
208+
207209
# Repair symlink
208210
pushd Kivy.app/Contents/Resources/venv/bin/
209211
rm ./python3
210212
ln -s ../../../Frameworks/python/$PYTHON_VERSION/bin/python3 .
211213
popd
212214

213215
# Go into kivy sdk directory and fix the script package_app.py to use the specified python version.
214-
pushd .buildozer/osx/platform/kivy-sdk-packager-master/osx
215216
sed -i '' "s;3.5.0;$PYTHON_VERSION;g" package_app.py
216217
# Make it python3 compatible by removing decode(...) calls.
217218
sed -i '' "s;\.decode('utf-8');;g" package_app.py
@@ -228,6 +229,7 @@ buildozer osx debug
228229
# THIN APP #
229230
############
230231

232+
pushd .buildozer/osx/platform/kivy-sdk-packager-master/osx
231233
# remove unnecessary libs, such as the 141M GStreamer framework
232234
rm -rf "${APP_NAME}.app/Contents/Frameworks/GStreamer.framework"
233235

@@ -239,8 +241,8 @@ rm -rf "${APP_NAME}.app/Contents/Frameworks/GStreamer.framework"
239241
./create-osx-dmg.sh "${APP_NAME}.app"
240242

241243
# create the dist dir for our result to be uploaded as an artifact
242-
mkdir dist
243-
cp "${APP_NAME}.dmg" dist/
244+
mkdir ../../../../../dist
245+
cp "${APP_NAME}.dmg" ../../../../../dist/
244246

245247
#######################
246248
# OUTPUT VERSION INFO #

0 commit comments

Comments
 (0)