projects
/
webi-installers
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git]
/
gitea
/
install.ps1
diff --git
a/gitea/install.ps1
b/gitea/install.ps1
index 11ca5dba040251507e1134f3f0cb55042f5c24d8..22d2abe5ced5a951114a3c061b53ba57acd10608 100644
(file)
--- a/
gitea/install.ps1
+++ b/
gitea/install.ps1
@@
-15,10
+15,11
@@
$pkg_src_bin = "$Env:USERPROFILE\.local\opt\gitea-v$Env:WEBI_VERSION\bin"
$pkg_src_dir = "$Env:USERPROFILE\.local\opt\gitea-v$Env:WEBI_VERSION"
$pkg_src = "$pkg_src_cmd"
$pkg_src_dir = "$Env:USERPROFILE\.local\opt\gitea-v$Env:WEBI_VERSION"
$pkg_src = "$pkg_src_cmd"
-$pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE"
+New-Item "$Env:USERPROFILE\Downloads\webi" -ItemType Directory -Force | out-null
+$pkg_download = "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE"
# Fetch archive
# Fetch archive
-IF (!(Test-Path -Path "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE"))
+IF (!(Test-Path -Path "$Env:USERPROFILE\Downloads\
webi\
$Env:WEBI_PKG_FILE"))
{
# TODO: arch detection
echo "Downloading gitea from $Env:WEBI_PKG_URL to $pkg_download"
{
# TODO: arch detection
echo "Downloading gitea from $Env:WEBI_PKG_URL to $pkg_download"
@@
-39,7
+40,7
@@
IF (!(Test-Path -Path "$pkg_src_cmd"))
Remove-Item -Path ".\gitea.exe" -Recurse -ErrorAction Ignore
# Move single binary into root of temporary folder
Remove-Item -Path ".\gitea.exe" -Recurse -ErrorAction Ignore
# Move single binary into root of temporary folder
- & move "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" "gitea.exe"
+ & move "$Env:USERPROFILE\Downloads\
webi\
$Env:WEBI_PKG_FILE" "gitea.exe"
# Settle unpacked archive into place
echo "Install Location: $pkg_src_cmd"
# Settle unpacked archive into place
echo "Install Location: $pkg_src_cmd"