diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c02476f2..1d597153 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,13 +41,13 @@ jobs: - name: Setup Python MacOS run: | - wget https://www.python.org/ftp/python/3.9.2/python-3.9.2-macos11.pkg - sudo installer -verbose -pkg ./python-3.9.2-macos11.pkg -target / - echo "/Library/Frameworks/Python.framework/Versions/3.9/bin" >> $GITHUB_PATH + wget https://www.python.org/ftp/python/3.10.11/python-3.10.11-macos11.pkg + sudo installer -verbose -pkg ./python-3.10.11-macos11.pkg -target / + echo "/Library/Frameworks/Python.framework/Versions/3.10/bin" >> $GITHUB_PATH if: matrix.os == 'macos-latest' - name: Install Requirements - run: python3 -m pip install --upgrade pip && pip3 install wheel && pip3 install -r requirements.txt && pip3 uninstall -y typing && pip3 uninstall -y charset_normalizer + run: python3 -m pip install --upgrade pip && pip3 install wheel && pip3 install -r requirements.txt && pip3 uninstall -y typing - name: Build Wheel run: python3 setup.py bdist_wheel @@ -70,6 +70,9 @@ jobs: - name: Run Pyinstaller MacOS run: | + pip3 uninstall -y charset_normalizer + git clone https://github.com/Ousret/charset_normalizer.git + pip3 install -e ./charset_normalizer python3 version.py pyinstaller pros-macos.spec pyinstaller --onefile pros/cli/compile_commands/intercept-cc.py --name=intercept-cc --target-arch=universal2