Skip to content

Commit

Permalink
chore: use new bootstrap installer
Browse files Browse the repository at this point in the history
  • Loading branch information
LeMollinger authored and xxthunder committed Apr 12, 2024
1 parent e95bdb9 commit 8508aa9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 50 deletions.
3 changes: 0 additions & 3 deletions bootstrap.json

This file was deleted.

18 changes: 5 additions & 13 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,13 @@ function Test-RunningInCIorTestEnvironment {
}

function Invoke-Bootstrap {
# Download and unpack the bootstrap archive_url configured in bootstrap.json
$bootstrapJson = Join-Path $PSScriptRoot 'bootstrap.json'
if (Test-Path $bootstrapJson) {
$bootstrapDir = Join-Path $PSScriptRoot '.bootstrap'
if (-Not (Test-Path -Path $bootstrapDir)) {
New-Item -ItemType Directory $bootstrapDir
}
$bootstrapConfig = Get-Content $bootstrapJson | ConvertFrom-Json
$archiveFile = Join-Path $bootstrapDir 'bootstrap.zip'
Invoke-WebRequest -Uri $bootstrapConfig.archive_url -OutFile $archiveFile
Expand-Archive -Path $archiveFile -DestinationPath $bootstrapDir -Force
. $bootstrapDir\bootstrap.ps1
}
# Download bootstrap scripts from external repository
Invoke-RestMethod https://raw.githubusercontent.com/avengineers/bootstrap-installer/v1.5.0/install.ps1 | Invoke-Expression
# Execute bootstrap script
. .\.bootstrap\bootstrap.ps1
}


## start of script
# Always set the $InformationPreference variable to "Continue" globally, this way it gets printed on execution and continues execution afterwards.
$InformationPreference = "Continue"
Expand Down
34 changes: 0 additions & 34 deletions scoopfile.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,11 @@
{
"config": {
"use_lessmsi": true,
"autostash_on_conflict": true,
"scoop_repo": "https://github.com/xxthunder/Scoop",
"scoop_branch": "develop"
},
"buckets": [
{
"Name": "spl",
"Source": "https://github.com/avengineers/spl-bucket"
},
{
"Name": "main",
"Source": "https://github.com/ScoopInstaller/Main"
},
{
"Name": "versions",
"Source": "https://github.com/ScoopInstaller/Versions"
},
{
"Name": "extras",
"Source": "https://github.com/ScoopInstaller/Extras"
}
],
"apps": [
{
"Source": "main",
"Name": "dark"
},
{
"Source": "main",
"Name": "innounp"
},
{
"Source": "main",
"Name": "lessmsi"
},
{
"Source": "versions",
"Name": "python311"
},
{
"Source": "spl",
"Name": "mingw-winlibs-llvm-ucrt",
Expand Down

0 comments on commit 8508aa9

Please sign in to comment.