chore: add lots of windows packages
This commit is contained in:
parent
8bdbc527f0
commit
057394707f
53 changed files with 231 additions and 1 deletions
2
groups/dev/android
Normal file
2
groups/dev/android
Normal file
|
@ -0,0 +1,2 @@
|
|||
java
|
||||
android-studio
|
2
groups/dev/java
Normal file
2
groups/dev/java
Normal file
|
@ -0,0 +1,2 @@
|
|||
java
|
||||
intellijidea-ultimate
|
3
groups/dev/tools
Normal file
3
groups/dev/tools
Normal file
|
@ -0,0 +1,3 @@
|
|||
sqlitebrowser
|
||||
hxd
|
||||
meld
|
3
groups/forensics
Normal file
3
groups/forensics
Normal file
|
@ -0,0 +1,3 @@
|
|||
testdisk
|
||||
recuva
|
||||
sandboxie
|
2
groups/gamecraft
Normal file
2
groups/gamecraft
Normal file
|
@ -0,0 +1,2 @@
|
|||
minecraft
|
||||
minetest
|
4
groups/gamelan
Normal file
4
groups/gamelan
Normal file
|
@ -0,0 +1,4 @@
|
|||
teeworlds
|
||||
0ad
|
||||
warzone2100
|
||||
sauerbraten
|
2
groups/gaming
Normal file
2
groups/gaming
Normal file
|
@ -0,0 +1,2 @@
|
|||
steam
|
||||
discord
|
4
groups/java
Normal file
4
groups/java
Normal file
|
@ -0,0 +1,4 @@
|
|||
git
|
||||
jdk8
|
||||
openjdk
|
||||
gradle
|
4
groups/media/audio
Normal file
4
groups/media/audio
Normal file
|
@ -0,0 +1,4 @@
|
|||
vlc
|
||||
aimp
|
||||
clementine
|
||||
foobar2000
|
4
groups/media/tag
Normal file
4
groups/media/tag
Normal file
|
@ -0,0 +1,4 @@
|
|||
vlc
|
||||
audacity
|
||||
ffmpeg
|
||||
mp3tag
|
2
groups/media/video
Normal file
2
groups/media/video
Normal file
|
@ -0,0 +1,2 @@
|
|||
kdenlive
|
||||
obs-studio
|
3
groups/node
Normal file
3
groups/node
Normal file
|
@ -0,0 +1,3 @@
|
|||
nodejs
|
||||
yarn
|
||||
npm
|
|
@ -1,2 +1,4 @@
|
|||
firefox
|
||||
libreoffice
|
||||
okular
|
||||
zathura
|
||||
|
|
4
groups/teamchat
Normal file
4
groups/teamchat
Normal file
|
@ -0,0 +1,4 @@
|
|||
signal
|
||||
franz
|
||||
slack
|
||||
zulip
|
9
groups/win/base
Normal file
9
groups/win/base
Normal file
|
@ -0,0 +1,9 @@
|
|||
chocolateygui
|
||||
7zip
|
||||
k-litecodecpack-standard
|
||||
everything
|
||||
screentogif
|
||||
notepadplusplus
|
||||
pinta
|
||||
gimp
|
||||
bulkrenameutility.install
|
3
groups/win/office
Normal file
3
groups/win/office
Normal file
|
@ -0,0 +1,3 @@
|
|||
office
|
||||
thunderbird
|
||||
files
|
4
groups/win/quickie
Normal file
4
groups/win/quickie
Normal file
|
@ -0,0 +1,4 @@
|
|||
win/tweaker
|
||||
transmission
|
||||
jdownloader
|
||||
open-shell
|
3
groups/win/sysinfo
Normal file
3
groups/win/sysinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
winaudit
|
||||
hwininfo
|
||||
windirstat
|
7
groups/win/tweaker
Normal file
7
groups/win/tweaker
Normal file
|
@ -0,0 +1,7 @@
|
|||
win/base
|
||||
win/sysinfo
|
||||
winaero-tweaker
|
||||
linkshellextension
|
||||
espanso
|
||||
wox
|
||||
mpw
|
|
@ -4,3 +4,4 @@ script
|
|||
zsh
|
||||
linux
|
||||
cargo
|
||||
git
|
||||
|
|
1
handlers.available.windows
Normal file
1
handlers.available.windows
Normal file
|
@ -0,0 +1 @@
|
|||
powershell
|
2
instalee
2
instalee
|
@ -44,7 +44,7 @@ installpkg() {
|
|||
set -e
|
||||
local name="$(basename $pkg)"
|
||||
local base="${name%_*}"
|
||||
for dependency in $(cat "${pkgdir}dependencies" "${pkgdir}${base}_dependencies" 2>/dev/null)
|
||||
for dependency in $(cat "${pkgdir}depends" "${pkgdir}${base}_depends" 2>/dev/null)
|
||||
do runinstalee $dependency
|
||||
done
|
||||
|
||||
|
|
0
packages/audacity/arch
Normal file
0
packages/audacity/arch
Normal file
2
packages/audacity/chocolatey
Normal file
2
packages/audacity/chocolatey
Normal file
|
@ -0,0 +1,2 @@
|
|||
audacity
|
||||
audacity-lame
|
141
packages/chocolatey/powershell
Normal file
141
packages/chocolatey/powershell
Normal file
|
@ -0,0 +1,141 @@
|
|||
Param(
|
||||
[string]$Loc
|
||||
)
|
||||
|
||||
$Delay = 2
|
||||
|
||||
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(
|
||||
[Security.Principal.WindowsBuiltInRole] 'Administrator')
|
||||
)
|
||||
{
|
||||
Write-Host "Not elevated, restarting in $Delay seconds ..."
|
||||
$Loc = Get-Location
|
||||
Start-Sleep -Seconds $Delay
|
||||
|
||||
$Arguments = @(
|
||||
'-NoProfile',
|
||||
'-ExecutionPolicy Bypass',
|
||||
'-NoExit',
|
||||
'-File',
|
||||
"`"$($MyInvocation.MyCommand.Path)`"",
|
||||
"\`"$Loc\`""
|
||||
)
|
||||
Start-Process -FilePath PowerShell.exe -Verb RunAs -ArgumentList $Arguments
|
||||
Break
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "Already elevated, exiting in $Delay seconds..."
|
||||
Start-Sleep -Seconds $Delay
|
||||
}
|
||||
if($Loc.Length -gt 1){
|
||||
Set-Location $Loc.Substring(1,$Loc.Length-1)
|
||||
}
|
||||
# https://github.com/lukegackle/PowerShell-Self-Elevate-Keeping-Current-Directory/blob/master/Self%20Elevate%20Keeping%20Directory.ps1
|
||||
|
||||
function Install-ChocolateyFromPackage {
|
||||
param (
|
||||
[string]$chocolateyPackageFilePath = ''
|
||||
)
|
||||
|
||||
if ($chocolateyPackageFilePath -eq $null -or $chocolateyPackageFilePath -eq '') {
|
||||
throw "You must specify a local package to run the local install."
|
||||
}
|
||||
|
||||
if (!(Test-Path($chocolateyPackageFilePath))) {
|
||||
throw "No file exists at $chocolateyPackageFilePath"
|
||||
}
|
||||
|
||||
$chocTempDir = Join-Path $env:TEMP "chocolatey"
|
||||
$tempDir = Join-Path $chocTempDir "chocInstall"
|
||||
if (![System.IO.Directory]::Exists($tempDir)) {[System.IO.Directory]::CreateDirectory($tempDir)}
|
||||
$file = Join-Path $tempDir "chocolatey.zip"
|
||||
Copy-Item $chocolateyPackageFilePath $file -Force
|
||||
|
||||
# unzip the package
|
||||
Write-Output "Extracting $file to $tempDir..."
|
||||
if ($unzipMethod -eq '7zip') {
|
||||
$7zaExe = Join-Path $tempDir '7za.exe'
|
||||
if (-Not (Test-Path ($7zaExe))) {
|
||||
Write-Output 'Downloading 7-Zip commandline tool prior to extraction.'
|
||||
# download 7zip
|
||||
Download-File $7zipUrl "$7zaExe"
|
||||
}
|
||||
|
||||
$params = "x -o`"$tempDir`" -bd -y `"$file`""
|
||||
# use more robust Process as compared to Start-Process -Wait (which doesn't
|
||||
# wait for the process to finish in PowerShell v3)
|
||||
$process = New-Object System.Diagnostics.Process
|
||||
$process.StartInfo = New-Object System.Diagnostics.ProcessStartInfo($7zaExe, $params)
|
||||
$process.StartInfo.RedirectStandardOutput = $true
|
||||
$process.StartInfo.UseShellExecute = $false
|
||||
$process.StartInfo.WindowStyle = [System.Diagnostics.ProcessWindowStyle]::Hidden
|
||||
$process.Start() | Out-Null
|
||||
$process.BeginOutputReadLine()
|
||||
$process.WaitForExit()
|
||||
$exitCode = $process.ExitCode
|
||||
$process.Dispose()
|
||||
|
||||
$errorMessage = "Unable to unzip package using 7zip. Perhaps try setting `$env:chocolateyUseWindowsCompression = 'true' and call install again. Error:"
|
||||
switch ($exitCode) {
|
||||
0 { break }
|
||||
1 { throw "$errorMessage Some files could not be extracted" }
|
||||
2 { throw "$errorMessage 7-Zip encountered a fatal error while extracting the files" }
|
||||
7 { throw "$errorMessage 7-Zip command line error" }
|
||||
8 { throw "$errorMessage 7-Zip out of memory" }
|
||||
255 { throw "$errorMessage Extraction cancelled by the user" }
|
||||
default { throw "$errorMessage 7-Zip signalled an unknown error (code $exitCode)" }
|
||||
}
|
||||
} else {
|
||||
if ($PSVersionTable.PSVersion.Major -lt 5) {
|
||||
try {
|
||||
$shellApplication = new-object -com shell.application
|
||||
$zipPackage = $shellApplication.NameSpace($file)
|
||||
$destinationFolder = $shellApplication.NameSpace($tempDir)
|
||||
$destinationFolder.CopyHere($zipPackage.Items(),0x10)
|
||||
} catch {
|
||||
throw "Unable to unzip package using built-in compression. Set `$env:chocolateyUseWindowsCompression = 'false' and call install again to use 7zip to unzip. Error: `n $_"
|
||||
}
|
||||
} else {
|
||||
Expand-Archive -Path "$file" -DestinationPath "$tempDir" -Force
|
||||
}
|
||||
}
|
||||
|
||||
# Call Chocolatey install
|
||||
Write-Output 'Installing chocolatey on this machine'
|
||||
$toolsFolder = Join-Path $tempDir "tools"
|
||||
$chocInstallPS1 = Join-Path $toolsFolder "chocolateyInstall.ps1"
|
||||
|
||||
& $chocInstallPS1
|
||||
|
||||
Write-Output 'Ensuring chocolatey commands are on the path'
|
||||
$chocInstallVariableName = 'ChocolateyInstall'
|
||||
$chocoPath = [Environment]::GetEnvironmentVariable($chocInstallVariableName)
|
||||
if ($chocoPath -eq $null -or $chocoPath -eq '') {
|
||||
$chocoPath = 'C:\ProgramData\Chocolatey'
|
||||
}
|
||||
|
||||
$chocoExePath = Join-Path $chocoPath 'bin'
|
||||
|
||||
if ($($env:Path).ToLower().Contains($($chocoExePath).ToLower()) -eq $false) {
|
||||
$env:Path = [Environment]::GetEnvironmentVariable('Path',[System.EnvironmentVariableTarget]::Machine);
|
||||
}
|
||||
|
||||
Write-Output 'Ensuring chocolatey.nupkg is in the lib folder'
|
||||
$chocoPkgDir = Join-Path $chocoPath 'lib\chocolatey'
|
||||
$nupkg = Join-Path $chocoPkgDir 'chocolatey.nupkg'
|
||||
if (!(Test-Path $nupkg)) {
|
||||
Write-Output 'Copying chocolatey.nupkg is in the lib folder'
|
||||
if (![System.IO.Directory]::Exists($chocoPkgDir)) { [System.IO.Directory]::CreateDirectory($chocoPkgDir); }
|
||||
Copy-Item "$file" "$nupkg" -Force -ErrorAction SilentlyContinue
|
||||
}
|
||||
}
|
||||
|
||||
$ChocoInstallPath = "$($env:SystemDrive)\ProgramData\Chocolatey\bin"
|
||||
# Idempotence - do not install Chocolatey if it is already installed
|
||||
if (!(Test-Path $ChocoInstallPath)) {
|
||||
# Install Chocolatey
|
||||
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
|
||||
# TODO If offline:
|
||||
#Install-ChocolateyFromPackage 'chocolatey.0.11.2.nupkg'
|
||||
}
|
3
packages/doom/git
Executable file
3
packages/doom/git
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
git clone https://github.com/hlissner/doom-emacs ~/.emacs.d
|
||||
~/.emacs.d/bin/doom install
|
4
packages/doom/git_depends
Normal file
4
packages/doom/git_depends
Normal file
|
@ -0,0 +1,4 @@
|
|||
emacs
|
||||
ripgrep
|
||||
fd
|
||||
llvm
|
0
packages/emacs/chocolatey
Normal file
0
packages/emacs/chocolatey
Normal file
1
packages/franz/aur
Normal file
1
packages/franz/aur
Normal file
|
@ -0,0 +1 @@
|
|||
ferdium-bin
|
0
packages/franz/chocolatey
Normal file
0
packages/franz/chocolatey
Normal file
2
packages/lilypond/chocolatey
Normal file
2
packages/lilypond/chocolatey
Normal file
|
@ -0,0 +1,2 @@
|
|||
lilypond
|
||||
frescobaldi
|
1
packages/mp3tag/arch
Normal file
1
packages/mp3tag/arch
Normal file
|
@ -0,0 +1 @@
|
|||
puddletag
|
0
packages/mp3tag/chocolatey
Normal file
0
packages/mp3tag/chocolatey
Normal file
0
packages/musescore/arch
Normal file
0
packages/musescore/arch
Normal file
0
packages/musescore/chocolatey
Normal file
0
packages/musescore/chocolatey
Normal file
1
packages/obs-studio/arch
Normal file
1
packages/obs-studio/arch
Normal file
|
@ -0,0 +1 @@
|
|||
obs-studio
|
0
packages/okular/arch
Normal file
0
packages/okular/arch
Normal file
1
packages/okular/aur
Normal file
1
packages/okular/aur
Normal file
|
@ -0,0 +1 @@
|
|||
okular-no-purpose
|
0
packages/ripgrep/apt
Normal file
0
packages/ripgrep/apt
Normal file
1
packages/ripgrep/arch
Normal file
1
packages/ripgrep/arch
Normal file
|
@ -0,0 +1 @@
|
|||
ripgrep-all
|
0
packages/ripgrep/chocolatey
Normal file
0
packages/ripgrep/chocolatey
Normal file
1
packages/signal/arch
Normal file
1
packages/signal/arch
Normal file
|
@ -0,0 +1 @@
|
|||
signal-desktop
|
1
packages/slack/aur
Normal file
1
packages/slack/aur
Normal file
|
@ -0,0 +1 @@
|
|||
slack-electron
|
0
packages/slack/chocolatey
Normal file
0
packages/slack/chocolatey
Normal file
0
packages/testdisk/arch
Normal file
0
packages/testdisk/arch
Normal file
1
packages/testdisk/chocolatey
Normal file
1
packages/testdisk/chocolatey
Normal file
|
@ -0,0 +1 @@
|
|||
testdisk-photorec
|
0
packages/zoom/aur
Normal file
0
packages/zoom/aur
Normal file
1
packages/zulip/aur
Normal file
1
packages/zulip/aur
Normal file
|
@ -0,0 +1 @@
|
|||
zulip-desktop-bin
|
Loading…
Add table
Reference in a new issue