Delete .gitlab-ci.yml
This commit is contained in:
parent
9b7788bdd5
commit
292c74eb3a
@ -1,44 +0,0 @@
|
||||
.shared_windows_runners:
|
||||
tags:
|
||||
- windows
|
||||
|
||||
image: mcr.microsoft.com/dotnet/framework/sdk:4.8
|
||||
|
||||
before_script:
|
||||
- dotnet restore
|
||||
|
||||
uptool:
|
||||
extends:
|
||||
- .shared_windows_runners
|
||||
stage: deploy
|
||||
script: |
|
||||
$(new-object System.Net.WebClient).DownloadFile("https://gitlab.com/JFronny/UpTool2/-/jobs/artifacts/master/raw/Tools.zip?job=uptool", "$($(pwd).Path)\Tools.zip")
|
||||
& "C:\Program Files\7-Zip\7z.exe" x .\Tools.zip
|
||||
rm Tools.zip
|
||||
rm Install.bat
|
||||
rm Remove.bat
|
||||
mkdir .\build
|
||||
#dotnet publish -o .\build -c Release
|
||||
& "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe" -noLogo -verbosity:m -p:Configuration=Release
|
||||
cp .\\PostCompile\bin\Release\net461\* .\build\
|
||||
cp .\build\package.zip .\
|
||||
$file = Get-Item $(Resolve-Path .\build\*.exe).Path
|
||||
[timespan]$span = [System.DateTime]::Now - [datetime]'01/01/2000'
|
||||
[System.XML.XMLDocument]$xml=New-Object System.XML.XMLDocument
|
||||
[System.XML.XMLElement]$app=$xml.CreateElement("app")
|
||||
$xml.appendChild($app)
|
||||
$app.appendChild($xml.CreateElement("Name")).InnerText = "PostCrypt"
|
||||
$app.appendChild($xml.CreateElement("Description")).InnerText = "Pack .NET FX applications in encrypted EXEs to prevent decompilation (quite easy to bypass)"
|
||||
$app.appendChild($xml.CreateElement("Version")).InnerText = "1.0." + $span.Days.ToString() + "." + [math]::Round(($span.Seconds + ($span.Minutes + $span.Hours * 60) * 60) / 2).ToString()
|
||||
$app.appendChild($xml.CreateElement("ID")).InnerText = "ec7cf340-c332-4f67-aa51-42b85b16381c"
|
||||
$app.appendChild($xml.CreateElement("File")).InnerText = $CI_PROJECT_URL + "/-/jobs/" + $CI_JOB_ID + "/artifacts/raw/package.zip"
|
||||
$app.appendChild($xml.CreateElement("Hash")).InnerText = $(Get-FileHash .\package.zip).Hash
|
||||
$app.appendChild($xml.CreateElement("MainFile")).InnerText = "PostCompile.exe"
|
||||
echo NULL > app.xml
|
||||
$xml.save($(gi .\app.xml).Fullname)
|
||||
artifacts:
|
||||
paths:
|
||||
- package.zip
|
||||
- app.xml
|
||||
only:
|
||||
- master
|
Reference in New Issue
Block a user