97 lines
3.2 KiB
PowerShell
97 lines
3.2 KiB
PowerShell
#!/bin/pwsh
|
|
. "$PSScriptRoot/../Scripts/Context.ps1";
|
|
. "$PSScriptRoot/../Scripts/SoftwarePackage.ps1";
|
|
. "$PSScriptRoot/../Software/Firefox/Install.ps1";
|
|
. "$PSScriptRoot/../Software/git/Manage.ps1";
|
|
. "$PSScriptRoot/../Software/LGHub/Manage.ps1";
|
|
. "$PSScriptRoot/../Software/ManiaPlanet/Manage.ps1";
|
|
. "$PSScriptRoot/../Software/osu!/Manage.ps1";
|
|
. "$PSScriptRoot/../Software/osu!lazer/Manage.ps1";
|
|
. "$PSScriptRoot/../Software/PuTTY/Manage.ps1";
|
|
. "$PSScriptRoot/../Software/RetroArch/Manage.ps1";
|
|
. "$PSScriptRoot/../Software/reWASD/Manage.ps1";
|
|
. "$PSScriptRoot/../Software/TrackMania Nations Forever/Manage.ps1";
|
|
. "$PSScriptRoot/../Software/TrackMania United Forever/Manage.ps1";
|
|
. "$PSScriptRoot/../Software/VisualStudio/Manage.ps1";
|
|
|
|
function Backup-GenericApps([Context] $context) {
|
|
Backup-Git $context;
|
|
Backup-PuTTY $context;
|
|
}
|
|
|
|
function Restore-GenericApps([Context] $context) {
|
|
# Device specific
|
|
if ((Get-Command Install-PersonalDrivers -ErrorAction SilentlyContinue)) {
|
|
Write-Information "Driver installation function was found. Starting installation";
|
|
Install-PersonalDrivers $context;
|
|
}
|
|
|
|
# Backed up applications
|
|
Restore-Git $context;
|
|
Restore-PuTTY $context;
|
|
|
|
# Design
|
|
choco install -y `
|
|
nerd-fonts-CascadiaCode;
|
|
|
|
# Browsing
|
|
Install-Firefox $context;
|
|
. "$PSScriptRoot/../Software/MSEdgeRedirect/Install.ps1";
|
|
|
|
winget install --accept-source-agreements --accept-package-agreements `
|
|
-e --id Mozilla.Firefox.DeveloperEdition `
|
|
-e --id Mozilla.Firefox.Nightly `
|
|
-e --id Brave.Brave `
|
|
-e --id Brave.Brave.Beta `
|
|
-e --id Brave.Brave.Nightly;
|
|
|
|
$context.RemoveTaskbarItem("*Firefox*");
|
|
$context.RemoveDesktopIcon("*Brave*");
|
|
$context.RemoveTaskbarItem("*Brave*");
|
|
|
|
choco install -y `
|
|
7zip `
|
|
chocolateygui `
|
|
DefaultProgramsEditor `
|
|
bitwarden `
|
|
keepass `
|
|
procexp `
|
|
procmon;
|
|
|
|
winget install --accept-source-agreements --accept-package-agreements `
|
|
-e --id KDE.KDEConnect;
|
|
|
|
# Media
|
|
choco install -y k-litecodecpackmega;
|
|
|
|
# Coding
|
|
choco install -y --params "/NoDesktopIcon" vscode vscode-insiders;
|
|
choco install -y --params "/NoDesktopIcon /AssociateWithFiles" vscodium;
|
|
winget install --scope machine --accept-source-agreements --accept-package-agreements -e --id VSCodium.VSCodium.Insiders --override '/VerySilent /MergeTasks="!runCode,quicklaunchicon,addcontextmenufiles,addcontextmenufolders,associatewithfiles,addtopath"';
|
|
|
|
choco install -y `
|
|
gh `
|
|
github-desktop;
|
|
|
|
$context.RemoveDesktopIcon("GitHub*");
|
|
|
|
choco install -y `
|
|
python `
|
|
visualstudio2019-workload-vctools;
|
|
|
|
. "$PSScriptRoot/../Software/NVS/Install.ps1";
|
|
|
|
# Terminal
|
|
@($PROFILE, (powershell -c '$PROFILE')) | ForEach-Object {
|
|
Get-Item "$(Split-Path -Parent $_)/profile.d/*Oh My Posh*";
|
|
} | ForEach-Object {
|
|
$oldContent = Get-Content $_;
|
|
|
|
$oldContent | ForEach-Object {
|
|
$indicator = "oh-my-posh init";
|
|
$_ -replace $indicator,"$indicator --config ~/Nextcloud/.omp/manuel.omp.json";
|
|
} | Set-Content $_;
|
|
}
|
|
|
|
$context.RemoveDesktopIcon("*Microsoft Edge*");
|
|
}
|