Make sure build dependencies are installed for Kivy.app, and use default python version provided by `create-osx-bundle.sh` (#8513)

* Make sure build dependencies are installed for Kivy.app

* Use the default python version from kivy-sdk-packager build script
This commit is contained in:
Mirko Galimberti 2023-12-17 11:09:49 +01:00 committed by GitHub
parent 7b84bf6151
commit a8ebd2df9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -36,14 +36,13 @@ install_platypus() {
}
generate_osx_app_bundle() {
py_version="$1"
app_ver=$(PYTHONPATH=. KIVY_NO_CONSOLELOG=1 python3 -c 'import kivy; print(kivy.__version__)')
cd ../
git clone https://github.com/kivy/kivy-sdk-packager.git
cd kivy-sdk-packager/osx
./create-osx-bundle.sh -k ../../kivy -p "$py_version" -v "$app_ver"
./create-osx-bundle.sh -k ../../kivy -v "$app_ver"
}
generate_osx_app_dmg_from_bundle() {

View File

@ -198,6 +198,9 @@ jobs:
run: |
source .ci/ubuntu_ci.sh
update_version_metadata
- name: Install build dependencies
run: |
brew install pkg-config cmake ninja
- name: Install dependencies
run: |
source .ci/ubuntu_ci.sh
@ -206,9 +209,8 @@ jobs:
install_kivy_test_run_pip_deps dev
- name: Make app bundle
run: |
py_version=$(python3 -c "import platform; print(platform.python_version())")
source .ci/osx_ci.sh
generate_osx_app_bundle "$py_version"
generate_osx_app_bundle
- name: Create dmg from bundle
run: |
source .ci/osx_ci.sh