This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# useage: | |
# scoop-import <exported_list_file> | |
param( | |
$exported | |
) | |
$apps = ( | |
Get-Content -Path $exported | Select-String '(?<app>.*)\s\(v:(?<version>.*)\)\s\[(?<bucket>.*)\]' -AllMatches | | |
Foreach-Object {$_.Matches} | | |
Foreach-Object {($_.Groups["bucket"].Value)+"/"+($_.Groups["app"].Value)} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CmdletBinding()] | |
param ( | |
[Parameter()] | |
[string] | |
$Trackers, | |
[Parameter()] | |
[string] | |
$Server | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Configuration> | |
<MappedFolders> | |
<MappedFolder> | |
<HostFolder>%USERPROFILE%\scoop\apps\scoop\current</HostFolder> | |
<SandboxFolder>C:\Users\WDAGUtilityAccount\scoop\apps\scoop\current</SandboxFolder> | |
<ReadOnly>true</ReadOnly> | |
</MappedFolder> | |
<MappedFolder> | |
<HostFolder>%USERPROFILE%\scoop\buckets</HostFolder> | |
<SandboxFolder>C:\Users\WDAGUtilityAccount\scoop\buckets</SandboxFolder> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. "$(scoop prefix scoop)\lib\core.ps1" | |
$main_bucket = Resolve-Path "$(scoop prefix scoop)\..\..\..\buckets\main\bucket" | |
scoop uninstall app appd localmanifest ag | |
clear-host | |
# create manifest for test | |
$manifest_1 = '{ | |
"version": "1", |