Skip to content

Commit 40b69fe

Browse files
committed
Try aqt Qt
1 parent 69788a1 commit 40b69fe

File tree

1 file changed

+4
-36
lines changed

1 file changed

+4
-36
lines changed

SerialPrograms/azure-pipelines.yml

Lines changed: 4 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ resources:
1414
name: PokemonAutomation/Packages
1515
endpoint: Koi-3088
1616
ref: refs/heads/master
17-
- repository: macdeployqtfix
18-
type: github
19-
name: arl/macdeployqtfix
20-
endpoint: Koi-3088
21-
ref: refs/heads/master
2217

2318
parameters:
2419
- name: buildType
@@ -307,7 +302,7 @@ jobs:
307302
qt_version_major: '6'
308303
qt_modules: 'qtserialport qtmultimedia'
309304
cmake_preset: 'RelWithDebInfo'
310-
macos_path: '/opt/homebrew/opt/qt/lib/cmake:/opt/homebrew/opt/qt/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew:$PATH'
305+
macos_path: '/opt/Qt/6.9.3/macos/lib/cmake:/opt/Qt/6.9.3/macos/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew:$PATH'
311306
cmake_additional_param: '-DPACKAGE_BUILD=true -DUNIX_LINK_TESSERACT:BOOL=true'
312307

313308
x86_64:
@@ -320,7 +315,7 @@ jobs:
320315
qt_version_major: '6'
321316
qt_modules: 'qtserialport qtmultimedia'
322317
cmake_preset: 'RelWithDebInfo'
323-
macos_path: '/usr/local/opt/qt/lib/cmake:/usr/local/opt/qt/bin:/usr/local/opt:/usr/local/bin:/usr/local/sbin:/usr/local:$PATH'
318+
macos_path: '/usr/local/Qt/6.9.3/macos/lib/cmake:/usr/local/Qt/6.9.3/macos/bin:/usr/local/opt:/usr/local/bin:/usr/local/sbin:/usr/local:$PATH'
324319
cmake_additional_param: '-DPACKAGE_BUILD=true -DUNIX_LINK_TESSERACT:BOOL=true'
325320

326321
pool:
@@ -340,12 +335,6 @@ jobs:
340335
persistCredentials: true
341336
clean: false
342337

343-
- checkout: macdeployqtfix
344-
path: Arduino-Source/macdeployqtfix
345-
submodules: recursive
346-
persistCredentials: true
347-
clean: false
348-
349338
- script: |
350339
export PATH=$(macos_path)
351340
cd "$(Pipeline.Workspace)/Arduino-Source/SerialPrograms"
@@ -372,11 +361,11 @@ jobs:
372361
if [ $(architecture) = "X64" ]; then
373362
echo "Using Intel Homebrew and Qt..."
374363
BREW_PREFIX=$(/usr/local/bin/brew --prefix)
375-
QT_BIN="$BREW_PREFIX/opt/qt/bin"
364+
QT_BIN="$BREW_PREFIX/Qt/6.9.3/macos/bin"
376365
else
377366
echo "Using ARM64 Homebrew and Qt..."
378367
BREW_PREFIX=$(/opt/homebrew/bin/brew --prefix)
379-
QT_BIN="$BREW_PREFIX/opt/qt/bin"
368+
QT_BIN="$BREW_PREFIX/Qt/6.9.3/macos/bin"
380369
fi
381370
382371
echo "=== Running Macdeployqt ==="
@@ -386,27 +375,6 @@ jobs:
386375
displayName: 'Run macdeployqt'
387376
condition: succeeded()
388377
389-
- bash: |
390-
set -e
391-
echo "=== Running macdeployqtfix for MacOS $(architecture) ==="
392-
export PATH=$(macos_path)
393-
APP_DIR="$(Pipeline.Workspace)/Arduino-Source/build/$(cmake_preset)/SerialPrograms.app"
394-
MACOS_DIR="$APP_DIR/Contents/MacOS"
395-
396-
if [ $(architecture) = "X64" ]; then
397-
echo "Using Intel Homebrew and Qt..."
398-
BREW_PREFIX=$(/usr/local/bin/brew --prefix)
399-
QT_DIR="$BREW_PREFIX/opt/qt/"
400-
else
401-
echo "Using ARM64 Homebrew and Qt..."
402-
BREW_PREFIX=$(/opt/homebrew/bin/brew --prefix)
403-
QT_DIR="$BREW_PREFIX/opt/qt/"
404-
fi
405-
406-
python3 "$(Pipeline.Workspace)/Arduino-Source/macdeployqtfix/macdeployqtfix.py" $MACOS_DIR/SerialPrograms $QT_DIR -v
407-
displayName: 'Run macdeployqtfix'
408-
condition: succeeded()
409-
410378
- bash: |
411379
set -euo pipefail
412380
echo "=== Fixing the app bundle ==="

0 commit comments

Comments
 (0)