Move scripts properly
This commit is contained in:
parent
36336e332d
commit
2dfb9d58bf
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../scripts/Common/Scripts/Context.ps1";
|
||||||
. "$PSScriptRoot/../../../scripts/Windows/OS/Manage.ps1";
|
. "$PSScriptRoot/../../../scripts/Windows/OS/Manage.ps1";
|
||||||
|
|
||||||
Write-Host "Starting Backup of Windows";
|
Write-Host "Starting Backup of Windows";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../scripts/Common/Scripts/Context.ps1";
|
||||||
|
|
||||||
function Install-PortValhallaDrivers {
|
function Install-PortValhallaDrivers {
|
||||||
param(
|
param(
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/Drivers.ps1";
|
. "$PSScriptRoot/Drivers.ps1";
|
||||||
|
. "$PSScriptRoot/../../../scripts/Common/Scripts/Context.ps1";
|
||||||
. "$PSScriptRoot/../../../scripts/Windows/Collections/Personal.ps1"
|
. "$PSScriptRoot/../../../scripts/Windows/Collections/Personal.ps1"
|
||||||
. "$PSScriptRoot/../../../scripts/Windows/OS/Install.ps1";
|
. "$PSScriptRoot/../../../scripts/Windows/OS/Install.ps1";
|
||||||
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Context.ps1";
|
|
||||||
|
|
||||||
function Initialize-Configuration {
|
function Initialize-Configuration {
|
||||||
# Fix synchronization between Linux and Windows clock
|
# Fix synchronization between Linux and Windows clock
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../scripts/Common/Scripts/Context.ps1";
|
||||||
. "$PSScriptRoot/../../../scripts/Windows/OS/Install.ps1";
|
. "$PSScriptRoot/../../../scripts/Windows/OS/Install.ps1";
|
||||||
. "$PSScriptRoot/../../../scripts/Windows/Collections/Generic.ps1"
|
. "$PSScriptRoot/../../../scripts/Windows/Collections/Generic.ps1"
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/Entrypoints.ps1";
|
. "$PSScriptRoot/../../Common/Scripts/Entrypoints.ps1";
|
||||||
. "$PSScriptRoot/../../Common/Software/PowerShell/profile.ps1";
|
. "$PSScriptRoot/../../Common/Software/PowerShell/profile.ps1";
|
||||||
|
|
||||||
class Context {
|
class Context {
|
|
@ -3,9 +3,9 @@ param (
|
||||||
[hashtable] $Arguments
|
[hashtable] $Arguments
|
||||||
)
|
)
|
||||||
|
|
||||||
. "$PSScriptRoot/../../../Windows/Scripts/Software.ps1";
|
. "$PSScriptRoot/../../Scripts/Software.ps1";
|
||||||
. "$PSScriptRoot/../../../Windows/Scripts/Scripting.ps1";
|
. "$PSScriptRoot/../../Scripts/Scripting.ps1";
|
||||||
. "$PSScriptRoot/../../../Windows/Types/InstallerAction.ps1";
|
. "$PSScriptRoot/../../Types/InstallerAction.ps1";
|
||||||
|
|
||||||
Start-SoftwareInstaller @PSBoundParameters `
|
Start-SoftwareInstaller @PSBoundParameters `
|
||||||
-Installer {
|
-Installer {
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../Scripts/Context.ps1";
|
|
||||||
. "$PSScriptRoot/../Scripts/SoftwareManagement.ps1";
|
|
||||||
. "$PSScriptRoot/../Software/Firefox/Install.ps1";
|
. "$PSScriptRoot/../Software/Firefox/Install.ps1";
|
||||||
. "$PSScriptRoot/../Software/git/Manage.ps1";
|
. "$PSScriptRoot/../Software/git/Manage.ps1";
|
||||||
. "$PSScriptRoot/../Software/LGHub/Manage.ps1";
|
. "$PSScriptRoot/../Software/LGHub/Manage.ps1";
|
||||||
|
@ -13,6 +11,8 @@
|
||||||
. "$PSScriptRoot/../Software/TrackMania Nations Forever/Manage.ps1";
|
. "$PSScriptRoot/../Software/TrackMania Nations Forever/Manage.ps1";
|
||||||
. "$PSScriptRoot/../Software/TrackMania United Forever/Manage.ps1";
|
. "$PSScriptRoot/../Software/TrackMania United Forever/Manage.ps1";
|
||||||
. "$PSScriptRoot/../Software/VisualStudio/Manage.ps1";
|
. "$PSScriptRoot/../Software/VisualStudio/Manage.ps1";
|
||||||
|
. "$PSScriptRoot/../../Common/Scripts/Context.ps1";
|
||||||
|
. "$PSScriptRoot/../../Common/Scripts/SoftwareManagement.ps1";
|
||||||
|
|
||||||
function Backup-GenericApps([Context] $context) {
|
function Backup-GenericApps([Context] $context) {
|
||||||
Backup-Git $context;
|
Backup-Git $context;
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../Scripts/Context.ps1";
|
|
||||||
. "$PSScriptRoot/Generic.ps1";
|
. "$PSScriptRoot/Generic.ps1";
|
||||||
. "$PSScriptRoot/../Scripts/SoftwareManagement.ps1";
|
|
||||||
. "$PSScriptRoot/../Software/Firefox/Install.ps1";
|
. "$PSScriptRoot/../Software/Firefox/Install.ps1";
|
||||||
. "$PSScriptRoot/../Software/git/Manage.ps1";
|
. "$PSScriptRoot/../Software/git/Manage.ps1";
|
||||||
. "$PSScriptRoot/../Software/LGHub/Manage.ps1";
|
. "$PSScriptRoot/../Software/LGHub/Manage.ps1";
|
||||||
|
@ -14,6 +12,8 @@
|
||||||
. "$PSScriptRoot/../Software/TrackMania Nations Forever/Manage.ps1";
|
. "$PSScriptRoot/../Software/TrackMania Nations Forever/Manage.ps1";
|
||||||
. "$PSScriptRoot/../Software/TrackMania United Forever/Manage.ps1";
|
. "$PSScriptRoot/../Software/TrackMania United Forever/Manage.ps1";
|
||||||
. "$PSScriptRoot/../Software/VisualStudio/Manage.ps1";
|
. "$PSScriptRoot/../Software/VisualStudio/Manage.ps1";
|
||||||
|
. "$PSScriptRoot/../../Common/Scripts/Context.ps1";
|
||||||
|
. "$PSScriptRoot/../../Common/Scripts/SoftwareManagement.ps1";
|
||||||
|
|
||||||
function Backup-PersonalApps([Context] $context) {
|
function Backup-PersonalApps([Context] $context) {
|
||||||
Backup-GenericApps $context;
|
Backup-GenericApps $context;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
param($context)
|
param($context)
|
||||||
|
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||||
|
|
||||||
[Context] $context = $context;
|
[Context] $context = $context;
|
||||||
$tempDir = $context.GetTempDirectory();
|
$tempDir = $context.GetTempDirectory();
|
||||||
|
|
|
@ -3,7 +3,7 @@ param(
|
||||||
[hashtable] $Arguments
|
[hashtable] $Arguments
|
||||||
)
|
)
|
||||||
|
|
||||||
. "$PSScriptRoot/../../Scripts/Software.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||||
|
|
||||||
Start-SoftwareInstaller @PSBoundParameters `
|
Start-SoftwareInstaller @PSBoundParameters `
|
||||||
-Installer {
|
-Installer {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
param($context)
|
param($context)
|
||||||
|
|
||||||
|
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||||
[Context]$context = $context;
|
[Context]$context = $context;
|
||||||
|
|
||||||
$tempDir = $context.GetTempDirectory();
|
$tempDir = $context.GetTempDirectory();
|
||||||
|
|
|
@ -3,7 +3,7 @@ param(
|
||||||
[hashtable] $Arguments
|
[hashtable] $Arguments
|
||||||
)
|
)
|
||||||
|
|
||||||
. "$PSScriptRoot/../../Scripts/Software.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||||
. "$PSScriptRoot/../../Scripts/System.ps1";
|
. "$PSScriptRoot/../../Scripts/System.ps1";
|
||||||
|
|
||||||
Start-SoftwareInstaller @PSBoundParameters `
|
Start-SoftwareInstaller @PSBoundParameters `
|
||||||
|
|
|
@ -3,7 +3,7 @@ param(
|
||||||
[hashtable] $Arguments
|
[hashtable] $Arguments
|
||||||
)
|
)
|
||||||
|
|
||||||
. "$PSScriptRoot/../../../Scripts/Software.ps1";
|
. "$PSScriptRoot/../../../../Common/Scripts/Software.ps1";
|
||||||
|
|
||||||
Start-SoftwareInstaller @PSBoundParameters `
|
Start-SoftwareInstaller @PSBoundParameters `
|
||||||
-Installer {
|
-Installer {
|
||||||
|
|
|
@ -3,7 +3,7 @@ param(
|
||||||
[hashtable] $Arguments
|
[hashtable] $Arguments
|
||||||
)
|
)
|
||||||
|
|
||||||
. "$PSScriptRoot/../../../Scripts/Software.ps1";
|
. "$PSScriptRoot/../../../../Common/Scripts/Software.ps1";
|
||||||
|
|
||||||
Start-SoftwareInstaller @PSBoundParameters `
|
Start-SoftwareInstaller @PSBoundParameters `
|
||||||
-Installer {
|
-Installer {
|
||||||
|
|
|
@ -3,7 +3,7 @@ param(
|
||||||
[hashtable] $Arguments
|
[hashtable] $Arguments
|
||||||
)
|
)
|
||||||
|
|
||||||
. "$PSScriptRoot/../../../Scripts/Software.ps1";
|
. "$PSScriptRoot/../../../../Common/Scripts/Software.ps1";
|
||||||
|
|
||||||
Start-SoftwareInstaller @PSBoundParameters `
|
Start-SoftwareInstaller @PSBoundParameters `
|
||||||
-Installer {
|
-Installer {
|
||||||
|
|
|
@ -3,7 +3,7 @@ param(
|
||||||
[hashtable] $Arguments
|
[hashtable] $Arguments
|
||||||
)
|
)
|
||||||
|
|
||||||
. "$PSScriptRoot/../../../Scripts/Software.ps1";
|
. "$PSScriptRoot/../../../../Common/Scripts/Software.ps1";
|
||||||
|
|
||||||
Start-SoftwareInstaller @PSBoundParameters `
|
Start-SoftwareInstaller @PSBoundParameters `
|
||||||
-Installer {
|
-Installer {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
param($context)
|
param($context)
|
||||||
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/SoftwareManagement.ps1";
|
||||||
|
|
||||||
Write-Host "Installing Tobii Eye Tracking";
|
Write-Host "Installing Tobii Eye Tracking";
|
||||||
Install-SoftwarePackage $context "https://files.update.tech.tobii.com/Tobii_Eye_Tracking_Core_v2.16.8.214_x86.exe";
|
Install-SoftwarePackage $context "https://files.update.tech.tobii.com/Tobii_Eye_Tracking_Core_v2.16.8.214_x86.exe";
|
||||||
|
|
|
@ -3,7 +3,7 @@ param(
|
||||||
[hashtable] $Arguments
|
[hashtable] $Arguments
|
||||||
)
|
)
|
||||||
|
|
||||||
. "$PSScriptRoot/../../Scripts/Software.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||||
|
|
||||||
Start-SoftwareInstaller @PSBoundParameters `
|
Start-SoftwareInstaller @PSBoundParameters `
|
||||||
-Installer {
|
-Installer {
|
||||||
|
|
|
@ -3,18 +3,18 @@
|
||||||
|
|
||||||
. "$PSScriptRoot/Manage.ps1";
|
. "$PSScriptRoot/Manage.ps1";
|
||||||
. "$PSScriptRoot/User/Install.ps1";
|
. "$PSScriptRoot/User/Install.ps1";
|
||||||
. "$PSScriptRoot/../Scripts/Context.ps1";
|
|
||||||
. "$PSScriptRoot/../Software/Firefox/Install.ps1";
|
. "$PSScriptRoot/../Software/Firefox/Install.ps1";
|
||||||
|
. "$PSScriptRoot/../../Common/Scripts/Context.ps1";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
. "$PSScriptRoot/../Scripts/Config.ps1";
|
|
||||||
. "$PSScriptRoot/../Scripts/Hooks.ps1";
|
. "$PSScriptRoot/../Scripts/Hooks.ps1";
|
||||||
. "$PSScriptRoot/../Scripts/Operations.ps1";
|
|
||||||
. "$PSScriptRoot/../Scripts/PowerManagement.ps1";
|
. "$PSScriptRoot/../Scripts/PowerManagement.ps1";
|
||||||
. "$PSScriptRoot/../Scripts/Software.ps1";
|
|
||||||
. "$PSScriptRoot/../Scripts/SoftwareManagement.ps1";
|
|
||||||
. "$PSScriptRoot/../Scripts/Update.ps1";
|
. "$PSScriptRoot/../Scripts/Update.ps1";
|
||||||
. "$PSScriptRoot/../Types/InstallerAction.ps1";
|
. "$PSScriptRoot/../../Common/Scripts/Config.ps1";
|
||||||
|
. "$PSScriptRoot/../../Common/Scripts/Operations.ps1";
|
||||||
|
. "$PSScriptRoot/../../Common/Scripts/Software.ps1";
|
||||||
|
. "$PSScriptRoot/../../Common/Scripts/SoftwareManagement.ps1";
|
||||||
|
. "$PSScriptRoot/../../Common/Types/InstallerAction.ps1";
|
||||||
|
|
||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../Scripts/Context.ps1";
|
|
||||||
. "$PSScriptRoot/../Scripts/PersonalFiles.ps1";
|
. "$PSScriptRoot/../Scripts/PersonalFiles.ps1";
|
||||||
. "$PSScriptRoot/../Software/Firefox/Install.ps1";
|
. "$PSScriptRoot/../Software/Firefox/Install.ps1";
|
||||||
. "$PSScriptRoot/../Software/Nextcloud/Manage.ps1";
|
. "$PSScriptRoot/../Software/Nextcloud/Manage.ps1";
|
||||||
. "$PSScriptRoot/../Collections/Personal.ps1";
|
. "$PSScriptRoot/../Collections/Personal.ps1";
|
||||||
|
. "$PSScriptRoot/../../Common/Scripts/Context.ps1";
|
||||||
|
|
||||||
function Backup-WindowsInstallation([Context] $context) {
|
function Backup-WindowsInstallation([Context] $context) {
|
||||||
Write-Information "Backing up Windows";
|
Write-Information "Backing up Windows";
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../Scripts/Scripting.ps1";
|
. "$PSScriptRoot/../../Common/Scripts/Scripting.ps1";
|
||||||
|
|
||||||
function Start-Setup {
|
function Start-Setup {
|
||||||
. "$PSScriptRoot/../Scripts/Scripting.ps1";
|
. "$PSScriptRoot/../../Common/Scripts/Scripting.ps1";
|
||||||
$Global:InformationPreference = "Continue";
|
$Global:InformationPreference = "Continue";
|
||||||
$Global:ErrorActionPreference = "Inquire";
|
$Global:ErrorActionPreference = "Inquire";
|
||||||
$null = $env:WIN_COMPUTER_NAME;
|
$null = $env:WIN_COMPUTER_NAME;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../Common/Scripts/Context.ps1";
|
||||||
|
|
||||||
function Update-WindowsInstallation([Context] $context)
|
function Update-WindowsInstallation([Context] $context)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
$contextScript = "$PSScriptRoot/../../Scripts/Context.ps1";
|
$contextScript = "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||||
. "$contextScript";
|
. "$contextScript";
|
||||||
$preparedUsernameProperty = "AutoLoginUser";
|
$preparedUsernameProperty = "AutoLoginUser";
|
||||||
$preparedPasswordProperty = "AutoLoginPassword";
|
$preparedPasswordProperty = "AutoLoginPassword";
|
||||||
|
|
|
@ -5,7 +5,7 @@ param(
|
||||||
[string]$PreparedSecretProperty
|
[string]$PreparedSecretProperty
|
||||||
);
|
);
|
||||||
|
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||||
$context = [Context]::new();
|
$context = [Context]::new();
|
||||||
$userName = $context.Get($PreparedUsernameProperty);
|
$userName = $context.Get($PreparedUsernameProperty);
|
||||||
$password = $context.Get($PreparedSecretProperty);
|
$password = $context.Get($PreparedSecretProperty);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||||
. "$PSScriptRoot/Add.ps1";
|
. "$PSScriptRoot/Add.ps1";
|
||||||
|
|
||||||
function Install-PersonalUsers([Context] $context) {
|
function Install-PersonalUsers([Context] $context) {
|
||||||
|
|
|
@ -7,7 +7,7 @@ param (
|
||||||
[string]$UACDisablerTriggerProperty
|
[string]$UACDisablerTriggerProperty
|
||||||
);
|
);
|
||||||
|
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||||
$context = [Context]::new();
|
$context = [Context]::new();
|
||||||
$context.SetUACState($false);
|
$context.SetUACState($false);
|
||||||
Unregister-ScheduledTask -Confirm:$false $UACDisablerTaskName;
|
Unregister-ScheduledTask -Confirm:$false $UACDisablerTaskName;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/Context.ps1";
|
. "$PSScriptRoot/../../Common/Scripts/Context.ps1";
|
||||||
. "$PSScriptRoot/BrowserAutomation.ps1";
|
. "$PSScriptRoot/../../Common/Scripts/BrowserAutomation.ps1";
|
||||||
|
|
||||||
function Install-AmdSoftwarePackage() {
|
function Install-AmdSoftwarePackage() {
|
||||||
param(
|
param(
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
. "$PSScriptRoot/Context.ps1";
|
. "$PSScriptRoot/../../Common/ScriptsContext.ps1";
|
||||||
|
|
||||||
function Install-AsusSoftwarePackage([Context] $context, [string] $url) {
|
function Install-AsusSoftwarePackage([Context] $context, [string] $url) {
|
||||||
$packageFile = "AsusPackage.zip";
|
$packageFile = "AsusPackage.zip";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/Context.ps1";
|
. "$PSScriptRoot/../../Common/Scripts/Context.ps1";
|
||||||
|
|
||||||
function Get-BackupCandidates() {
|
function Get-BackupCandidates() {
|
||||||
[System.Collections.Generic.List[System.Tuple[string, string, string[]]]]$candidates = @();
|
[System.Collections.Generic.List[System.Tuple[string, string, string[]]]]$candidates = @();
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
using namespace Microsoft.Win32;
|
using namespace Microsoft.Win32;
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
. "$PSScriptRoot/Scripting.ps1";
|
. "$PSScriptRoot/../../Common/Scripts/Scripting.ps1";
|
||||||
[RegistryKey] $key = $null;
|
[RegistryKey] $key = $null;
|
||||||
$runOncePath = "HKLM:\Software\Microsoft\Windows\CurrentVersion\RunOnce";
|
$runOncePath = "HKLM:\Software\Microsoft\Windows\CurrentVersion\RunOnce";
|
||||||
$runOnceName = "PortValhalla";
|
$runOnceName = "PortValhalla";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/Context.ps1";
|
. "$PSScriptRoot/../../Common/Scripts/Context.ps1";
|
||||||
|
|
||||||
[Context]::new().PreventSleepMode();
|
[Context]::new().PreventSleepMode();
|
||||||
$null = powershell -c Get-PackageProvider -ListAvailable NuGet;
|
$null = powershell -c Get-PackageProvider -ListAvailable NuGet;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
param($context)
|
param($context)
|
||||||
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/SoftwareManagement.ps1";
|
||||||
Install-SoftwarePackage $context "https://github.com/bobranten/Ext4Fsd/releases/download/v0.71/Ext2Fsd-0.71-setup.exe"
|
Install-SoftwarePackage $context "https://github.com/bobranten/Ext4Fsd/releases/download/v0.71/Ext2Fsd-0.71-setup.exe"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||||
|
|
||||||
function Install-Firefox {
|
function Install-Firefox {
|
||||||
param([Context] $context)
|
param([Context] $context)
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
param($context)
|
param($context)
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/BrowserAutomation.ps1";
|
||||||
. "$PSScriptRoot/../../Scripts/BrowserAutomation.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||||
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/SoftwareManagement.ps1";
|
||||||
|
|
||||||
Write-Host "Installing GPU-Z";
|
Write-Host "Installing GPU-Z";
|
||||||
$tempDir = $context.GetTempDirectory();
|
$tempDir = $context.GetTempDirectory();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
$path = "$env:LOCALAPPDATA/LGHUB";
|
$path = "$env:LOCALAPPDATA/LGHUB";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
$path = "$HOME/Documents/ManiaPlanet";
|
$path = "$HOME/Documents/ManiaPlanet";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
function Restore-Nextcloud([Context] $context) {
|
function Restore-Nextcloud([Context] $context) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
param($context);
|
param($context);
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||||
|
|
||||||
[Context] $context = $context;
|
[Context] $context = $context;
|
||||||
winget install --accept-source-agreements --accept-package-agreements -s winget --scope machine -e --id JanDeDobbeleer.OhMyPosh;
|
winget install --accept-source-agreements --accept-package-agreements -s winget --scope machine -e --id JanDeDobbeleer.OhMyPosh;
|
||||||
|
|
|
@ -5,7 +5,7 @@ param(
|
||||||
[hashtable] $Arguments
|
[hashtable] $Arguments
|
||||||
)
|
)
|
||||||
|
|
||||||
. "$PSScriptRoot/../../Scripts/Software.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||||
|
|
||||||
Start-SoftwareInstaller @PSBoundParameters `
|
Start-SoftwareInstaller @PSBoundParameters `
|
||||||
-Installer {
|
-Installer {
|
||||||
|
|
|
@ -3,8 +3,8 @@ param (
|
||||||
[hashtable] $Arguments
|
[hashtable] $Arguments
|
||||||
)
|
)
|
||||||
|
|
||||||
. "$PSScriptRoot/../../Scripts/Software.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||||
. "$PSScriptRoot/../../Types/InstallerAction.ps1";
|
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
|
||||||
|
|
||||||
Start-SoftwareInstaller @PSBoundParameters `
|
Start-SoftwareInstaller @PSBoundParameters `
|
||||||
-Installer {
|
-Installer {
|
||||||
|
@ -16,6 +16,5 @@ Start-SoftwareInstaller @PSBoundParameters `
|
||||||
} `
|
} `
|
||||||
-Configurator {
|
-Configurator {
|
||||||
. "$PSScriptRoot/../../../Common/Software/PowerShell/Manage.ps1" `
|
. "$PSScriptRoot/../../../Common/Software/PowerShell/Manage.ps1" `
|
||||||
-Action ([InstallerAction]::Configure) `
|
-Action ([InstallerAction]::Configure);
|
||||||
-Arguments @{ Linux = $false };
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
$softwareName = "PuTTY";
|
$softwareName = "PuTTY";
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../Scripts/KnownFolders.ps1";
|
. "$PSScriptRoot/../../Scripts/KnownFolders.ps1";
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
Import-Module "$env:ChocolateyInstall/helpers/chocolateyInstaller.psm1";
|
Import-Module "$env:ChocolateyInstall/helpers/chocolateyInstaller.psm1";
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
param($context)
|
param($context)
|
||||||
|
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||||
[Context] $context = $context;
|
[Context] $context = $context;
|
||||||
|
|
||||||
choco install -y thunderbird --params "/NoTaskbarShortcut /NoDesktopShortcut";
|
choco install -y thunderbird --params "/NoTaskbarShortcut /NoDesktopShortcut";
|
||||||
|
|
|
@ -5,8 +5,8 @@ param(
|
||||||
[hashtable] $Arguments
|
[hashtable] $Arguments
|
||||||
)
|
)
|
||||||
|
|
||||||
. "$PSScriptRoot/../../Scripts/AppAssociations.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/AppAssociations.ps1";
|
||||||
. "$PSScriptRoot/../../Scripts/Software.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||||
|
|
||||||
Start-SoftwareInstaller @PSBoundParameters `
|
Start-SoftwareInstaller @PSBoundParameters `
|
||||||
-Installer {
|
-Installer {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
$path = "$HOME/Documents/TmForever";
|
$path = "$HOME/Documents/TmForever";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
$path = "$HOME/Documents/TrackMania";
|
$path = "$HOME/Documents/TrackMania";
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
param($context);
|
param($context);
|
||||||
|
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||||
[Context] $context = $context;
|
[Context] $context = $context;
|
||||||
|
|
||||||
Write-Host "Installing UniFi Controller";
|
Write-Host "Installing UniFi Controller";
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../Scripts/KnownFolders.ps1";
|
. "$PSScriptRoot/../../Scripts/KnownFolders.ps1";
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
$programs32Path = $(Get-KnownFolder "ProgramFilesX86").Path;
|
$programs32Path = $(Get-KnownFolder "ProgramFilesX86").Path;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
param($context)
|
param($context)
|
||||||
|
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||||
[Context] $context = $context;
|
[Context] $context = $context;
|
||||||
|
|
||||||
choco install -y winscp;
|
choco install -y winscp;
|
||||||
|
|
|
@ -6,7 +6,7 @@ param(
|
||||||
)
|
)
|
||||||
|
|
||||||
. "$PSScriptRoot/../../Scripts/AppAssociations.ps1";
|
. "$PSScriptRoot/../../Scripts/AppAssociations.ps1";
|
||||||
. "$PSScriptRoot/../../Scripts/Software.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||||
. "$PSScriptRoot/../../Scripts/System.ps1";
|
. "$PSScriptRoot/../../Scripts/System.ps1";
|
||||||
|
|
||||||
Start-SoftwareInstaller @PSBoundParameters `
|
Start-SoftwareInstaller @PSBoundParameters `
|
||||||
|
|
|
@ -8,8 +8,8 @@ param(
|
||||||
. "$PSScriptRoot/../../Scripts/Registry.ps1";
|
. "$PSScriptRoot/../../Scripts/Registry.ps1";
|
||||||
. "$PSScriptRoot/../../Scripts/Config.ps1";
|
. "$PSScriptRoot/../../Scripts/Config.ps1";
|
||||||
. "$PSScriptRoot/../../Scripts/System.ps1";
|
. "$PSScriptRoot/../../Scripts/System.ps1";
|
||||||
. "$PSScriptRoot/../../Scripts/Software.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||||
. "$PSScriptRoot/../../Types/InstallerAction.ps1";
|
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
|
||||||
|
|
||||||
Start-SoftwareInstaller @PSBoundParameters `
|
Start-SoftwareInstaller @PSBoundParameters `
|
||||||
-Installer {
|
-Installer {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
param($context);
|
param($context);
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||||
|
|
||||||
[Context] $context = $context;
|
[Context] $context = $context;
|
||||||
winget install --accept-source-agreements --accept-package-agreements -s winget --scope machine -e --id JanDeDobbeleer.Aliae;
|
winget install --accept-source-agreements --accept-package-agreements -s winget --scope machine -e --id JanDeDobbeleer.Aliae;
|
||||||
|
|
|
@ -5,7 +5,7 @@ param(
|
||||||
[hashtable] $Arguments
|
[hashtable] $Arguments
|
||||||
)
|
)
|
||||||
|
|
||||||
. "$PSScriptRoot/../../Scripts/Software.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||||
|
|
||||||
Start-SoftwareInstaller @PSBoundParameters `
|
Start-SoftwareInstaller @PSBoundParameters `
|
||||||
-Installer {
|
-Installer {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
|
||||||
. "$PSScriptRoot/../../Scripts/BashScript.ps1";
|
. "$PSScriptRoot/../../Scripts/BashScript.ps1";
|
||||||
|
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
function Backup-Git([Context] $context) {}
|
function Backup-Git([Context] $context) {}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../Scripts/KnownFolders.ps1";
|
. "$PSScriptRoot/../../Scripts/KnownFolders.ps1";
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
$path = "$((Get-KnownFolder -SpecialFolder ProgramFilesX86).Path)/osu!";
|
$path = "$((Get-KnownFolder -SpecialFolder ProgramFilesX86).Path)/osu!";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
$path = "$env:APPDATA/osu";
|
$path = "$env:APPDATA/osu";
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/pwsh
|
#!/bin/pwsh
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/BrowserAutomation.ps1";
|
||||||
. "$PSScriptRoot/../../Scripts/BrowserAutomation.ps1";
|
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
|
||||||
|
|
||||||
$path = "$env:PUBLIC/Documents/reWASD";
|
$path = "$env:PUBLIC/Documents/reWASD";
|
||||||
$softwareName = "reWASD";
|
$softwareName = "reWASD";
|
||||||
|
|
Loading…
Reference in a new issue