Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package bumps and SPSS v30 #50

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Package bumps and SPSS v30
AaronJackson committed Mar 7, 2025
commit 7622d1dca8e2f3c23cbc794184e9e1f884856ba9
24 changes: 12 additions & 12 deletions modules/hic-tre-cert.ps1
Original file line number Diff line number Diff line change
@@ -62,15 +62,15 @@ New-Item -Path "C:\Program Files\Mozilla Firefox\" -Name distribution -ItemType
# This covers both conda and CRAN, but it also overrides their own
# provided CA chain files. That's probably ok given we don't allow
# access to the internet.
[Environment]::SetEnvironmentVariable(
"SSL_CERT_FILE",
"C:\Tools\hic-tre.dundee.ac.uk.crt",
[System.EnvironmentVariableTarget]::User)
[Environment]::SetEnvironmentVariable(
"REQUESTS_CA_BUNDLE",
"C:\Tools\hic-tre.dundee.ac.uk.crt",
[System.EnvironmentVariableTarget]::User)
[Environment]::SetEnvironmentVariable(
"CURL_CA_BUNDLE",
"C:\Tools\hic-tre.dundee.ac.uk.crt",
[System.EnvironmentVariableTarget]::User)
# [Environment]::SetEnvironmentVariable(
# "SSL_CERT_FILE",
# "C:\Tools\hic-tre.dundee.ac.uk.crt",
# [System.EnvironmentVariableTarget]::User)
# [Environment]::SetEnvironmentVariable(
# "REQUESTS_CA_BUNDLE",
# "C:\Tools\hic-tre.dundee.ac.uk.crt",
# [System.EnvironmentVariableTarget]::User)
# [Environment]::SetEnvironmentVariable(
# "CURL_CA_BUNDLE",
# "C:\Tools\hic-tre.dundee.ac.uk.crt",
# [System.EnvironmentVariableTarget]::User)
4 changes: 2 additions & 2 deletions modules/libreoffice.ps1
Original file line number Diff line number Diff line change
@@ -3,8 +3,8 @@ $ProgressPreference = 'SilentlyContinue' # Disable (slow) progress bar

Set-Location C:\Tools

$LIBRE_VERSION = "24.2.5"
$LIBRE_HASH = "cad625d119db4720df5270fa2d860e0ed56d6e374b878e19a3cab4af68f1f54f"
$LIBRE_VERSION = "24.8.5"
$LIBRE_HASH = "ef3077c919fb05a5778818a00b7f9b329841691e6892bfb664d117e83ea27c9c"

$LIBRE_URL = "https://mirrors.ukfast.co.uk/sites/documentfoundation.org/tdf/libreoffice/stable/${LIBRE_VERSION}/win/x86_64/LibreOffice_${LIBRE_VERSION}_Win_x86-64.msi"

8 changes: 4 additions & 4 deletions modules/rstudio.ps1
Original file line number Diff line number Diff line change
@@ -4,20 +4,20 @@ $ProgressPreference = "SilentlyContinue" # PS progress bar is slow
$ErrorActionPreference = "Stop"

# R environment
Invoke-WebRequest -Uri "https://cloud.r-project.org/bin/windows/base/R-4.4.1-win.exe" -OutFile C:\Tools\R-installer.exe
Invoke-WebRequest -Uri "https://cloud.r-project.org/bin/windows/base/R-4.4.3-win.exe" -OutFile C:\Tools\R-installer.exe
Start-Process C:\Tools\R-installer.exe -ArgumentList "/VERYSILENT","/NORESTART" -NoNewWindow -Wait -PassThru

Invoke-WebRequest -Uri "https://download1.rstudio.org/electron/windows/RStudio-2024.04.2-764.exe" -OutFile C:\Tools\RStudio-installer.exe
Start-Process C:\Tools\RStudio-installer.exe -ArgumentList "/S" -NoNewWindow -Wait -PassThru

Invoke-WebRequest -Uri "https://cran.r-project.org/bin/windows/Rtools/rtools44/files/rtools44-6104-6039.exe" -OutFile C:\Tools\RTools.exe
Invoke-WebRequest -Uri "https://cran.r-project.org/bin/windows/Rtools/rtools44/files/rtools44-6459-6401.exe" -OutFile C:\Tools\RTools.exe
Start-Process C:\Tools\RTools.exe -ArgumentList "/VERYSILENT" -NoNewWindow -Wait -PassThru

# Install some default packages
$pkgs = "tidyverse","odbc","dbi","qqman","metafor","tidyr","ggplot2",`
"hmisc","data.table","dplyr","lubridate","survival","survminer"
foreach ($pkg in $pkgs) {
& "C:\Program Files\R\R-4.4.1\bin\Rscript.exe" `
& "C:\Program Files\R\R-4.4.3\bin\Rscript.exe" `
-e "install.packages('$pkg', repos='http://cran.uk.r-project.org')"
}

@@ -34,5 +34,5 @@ local({r <- getOption("repos")
# Set timezone
Sys.setenv(TZ='Europe/London')
"@
Set-Content "C:\Program Files\R\R-4.4.1\etc\Rprofile.site" $RConfig
Set-Content "C:\Program Files\R\R-4.4.3\etc\Rprofile.site" $RConfig
Set-Content "C:\Users\Administrator\Documents\.Renviron" "RSTUDIO_DISABLE_SECURE_DOWNLOAD_WARNING=1"
10 changes: 10 additions & 0 deletions modules/spss30.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

Set-Location C:\Tools

aws s3 cp s3://${Env:S3_PACKER_RESOURCES_PATH}/Statistics_30_Win_64bit.exe Statistics_30_Win_64bit.exe

Start-Process Statistics_30_Win_64bit.exe -Wait -ArgumentList '/S','/v/qn','/V','/i'

Register-ScheduledJob -Name SPSSLicenseUpdate -FilePath C:\Tools\ActivateSPSS.ps1 `
-ScheduledJobOption (New-ScheduledJobOption -DoNotAllowDemandStart) `
-Trigger (New-JobTrigger -AtStartup)