diff --git a/.github/workflows/ci_release.yml b/.github/workflows/ci_release.yml index 9ffeae8..031f19d 100644 --- a/.github/workflows/ci_release.yml +++ b/.github/workflows/ci_release.yml @@ -302,7 +302,7 @@ jobs: - name: Set env if: runner.os == 'macOS' run: | - python -m site --user-site + python -m site echo "PYTHON_SITE_PACKAGES_PATH=$(python -m site --user-site)" >> $GITHUB_ENV - name: Path for macOS arm64 if: matrix.os == 'macos-14' diff --git a/installer/extract_otp_secrets_macos_template.spec b/installer/extract_otp_secrets_macos_template.spec index 2c47dc9..211bfae 100644 --- a/installer/extract_otp_secrets_macos_template.spec +++ b/installer/extract_otp_secrets_macos_template.spec @@ -9,7 +9,7 @@ a = Analysis( ['src/extract_otp_secrets.py'], pathex=[], binaries=[], - datas=[('/__yolo_v3_qr_detector/', '__yolo_v3_qr_detector/')], + datas=[(os.environ['PYTHON_SITE_PACKAGES_PATH'] + '/__yolo_v3_qr_detector/', '__yolo_v3_qr_detector/')], hiddenimports=[], hookspath=[], hooksconfig={},