Skip to content

Commit

Permalink
Merge pull request #40 from phunkyfish/update-make-dmg
Browse files Browse the repository at this point in the history
Update paths to QT 6.6.2
  • Loading branch information
CvH authored Feb 19, 2024
2 parents 2a59ed1 + f33c9dc commit 6786b9c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion osx_make_dmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ set -e
DEVICE=""

USER=$(whoami)
QBIN="/Users/$USER/Qt/6.2.2-static/bin"
QBIN="/Users/$USER/Qt/6.6.2-static/bin"

function finish {
echo "Cleaning up..."
Expand Down
2 changes: 1 addition & 1 deletion windows_build_paths.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
REM # SPDX-License-Identifier: GPL-2.0-or-later
REM # Copyright (C) 2022-present Team LibreELEC (https://libreelec.tv)

set PATH=c:\Qt\Static\6.2.2\bin;%PATH%
set PATH=c:\Qt\Static\6.6.2\bin;%PATH%
set PATH=c:\Qt\Tools\mingw900_64\bin;%PATH%
46 changes: 23 additions & 23 deletions windows_qt_build_static.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

# Tested with QT 6.2.2 on Windows 10
# Tested with QT 6.6.2 on Windows 10
# https://mrfaptastic.github.io
# https://gist.github.com/mrfaptastic/80e909c9a8237994471bce2d17657779

Expand Down Expand Up @@ -59,9 +59,9 @@

[CmdletBinding()]
param(
$QtSrcUrl = "https://download.qt.io/official_releases/qt/6.2/6.2.2/single/qt-everywhere-src-6.2.2.zip",
$QtSrcUrl = "https://download.qt.io/official_releases/qt/6.6/6.6.2/single/qt-everywhere-src-6.6.2.zip",
$QtStaticDir = "C:\Qt\Static", # NO TRAILING SLASH
$QtVersion = "6.2.2", #If you change this, you'll need to change the URL above to download as well...
$QtVersion = "6.6.2", #If you change this, you'll need to change the URL above to download as well...
$MingwDir = "",
[switch]$NoPause = $false
)
Expand All @@ -77,7 +77,7 @@ function Main
{
# Check that 7zip is installed. We use it to expand the downloaded archive.
[void] (Get-7zip)

# Get Qt source file name from URL.
$QtSrcFileName = Split-Path -Leaf $QtSrcUrl

Expand Down Expand Up @@ -136,15 +136,15 @@ DEFINES += QT_STATIC_BUILD

# Set a clean path including MinGW.
$env:Path += "$MingwDir\bin;$MingwDir\opt\bin;$env:SystemRoot\system32;$env:SystemRoot;$env:SystemRoot\system32\WindowsPowerShell\v1.0\;"


# Check that the 'powershell' command is available
# ... and ruby, python and perl - as per: qt-everywhere-src-X.XX.X\README
#
# https://forum.qt.io/topic/118511/static-qt-environment-error-using-qt5-15-0/7
#
[void] (Check-prequisites)
#
[void] (Check-prequisites)


# Force English locale to avoid weird effects of tools localization.
$env:LANG = "en"
Expand Down Expand Up @@ -250,43 +250,43 @@ function Get-7zip

function Check-prequisites
{
if (Get-Command "powershell.exe" -ErrorAction SilentlyContinue)
{
if (Get-Command "powershell.exe" -ErrorAction SilentlyContinue)
{
echo "PowerShell is available.. This is good"
}
else
{
Exit-Script "'PowerShell' command is not available, check your windows path variable for this user account."
}
}

if (Get-Command "ruby" -ErrorAction SilentlyContinue)
{
if (Get-Command "ruby" -ErrorAction SilentlyContinue)
{
echo "Ruby is available.. This is good"
}
else
{
Exit-Script "'ruby' is not available, check your windows path variable for this user account or install per the Qt everything instructions!"
}
}


if (Get-Command "python" -ErrorAction SilentlyContinue)
{
if (Get-Command "python" -ErrorAction SilentlyContinue)
{
echo "Python is available.. This is good"
}
else
{
Exit-Script "'python' is not available, check your windows path variable for this user account or install ActivePython per the Qt everything instructions!"
}
}

if (Get-Command "perl" -ErrorAction SilentlyContinue)
{
if (Get-Command "perl" -ErrorAction SilentlyContinue)
{
echo "perl is available.. This is good"
}
else
{
Exit-Script "'perl' is not available, check your windows path variable for this user account or install ActivePerl per the Qt everything instructions!"
}
}


}

Expand Down

0 comments on commit 6786b9c

Please sign in to comment.