Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/febiosoftware/FEBio into…
Browse files Browse the repository at this point in the history
… develop
  • Loading branch information
gateshian committed Nov 1, 2024
2 parents e6af0d0 + 4b7ee5c commit c48c925
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 11 deletions.
14 changes: 11 additions & 3 deletions infrastructure/ami-windows-studio.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ locals {
installation_path = var.installation_path
src_path = "${local.installation_path}\\src"
vcpkg_package_path = "${local.installation_path}\\febio"
qt_path = "${local.installation_path}\\Qt"
environment = {
"INSTALLATION_PATH" = local.installation_path
"SOURCE_PATH" = local.src_path
"VCPKG_PACKAGE_PATH" = local.vcpkg_package_path
"QT_INSTALL_DIR" = local.qt_path
}
}

Expand Down Expand Up @@ -46,7 +48,7 @@ data "amazon-parameterstore" "winrm_username" {

variable "skip_create_ami" {
type = bool
default = true
default = false
}

source "amazon-ebs" "windows" {
Expand Down Expand Up @@ -111,6 +113,12 @@ build {
env = local.environment
}

# qt
provisioner "windows-shell" {
script = "./common/windows/qt.bat"
env = local.environment
}

provisioner "powershell" {
script = "./common/windows/install-builder.ps1"
env = local.environment
Expand Down Expand Up @@ -156,13 +164,13 @@ build {
env = local.environment
}

# # mmg
# mmg
provisioner "windows-shell" {
script = "./common/windows/mmg.bat"
env = local.environment
}

# # tetgen
# tetgen
provisioner "windows-shell" {
script = "./common/windows/tetgen.bat"
env = local.environment
Expand Down
3 changes: 2 additions & 1 deletion infrastructure/common/linux/packages.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ libxorg-gtest-dev
jq
yasm
patchelf
zip
zip
python3-pip
7 changes: 3 additions & 4 deletions infrastructure/common/linux/qt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ if command -v sudo &> /dev/null
then
SUDO=$(which sudo)
fi
$SUDO apt-get update
$SUDO apt-get install -y \
qt6-base-dev \
libqt6widgets6

$SUDO pip install aqtinstall -v
$SUDO aqt install-qt --outputdir /opt/Qt linux desktop 6.7.3 -m all
2 changes: 1 addition & 1 deletion infrastructure/common/windows/qt.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
call "%ONEAPI_ROOT%setvars.bat" --force
call pip install aqtinstall -v
call aqt list-qt windows desktop
call aqt install-qt --outputdir "%QT_INSTALL_DIR%" windowsdesktop 6.7.2 win64_msvc2019_64 -m all
call aqt install-qt --outputdir "%QT_INSTALL_DIR%" windows desktop 6.7.3 win64_msvc2019_64 -m all
5 changes: 3 additions & 2 deletions infrastructure/common/windows/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"opengl",
"openssl",
"pthread",
"qtbase",
"zlib"
"zstd",
"zlib",
"sqlite3"
]
}

0 comments on commit c48c925

Please sign in to comment.