Merge branch 'master' of https://gitlab.com/JFronny/PostCrypt
This commit is contained in:
commit
4d76f935e9
|
@ -0,0 +1,42 @@
|
||||||
|
.shared_windows_runners:
|
||||||
|
tags:
|
||||||
|
- windows
|
||||||
|
|
||||||
|
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
|
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2020 J. Fronny
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
|
@ -4,6 +4,8 @@
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net48</TargetFramework>
|
<TargetFramework>net48</TargetFramework>
|
||||||
<LangVersion>8</LangVersion>
|
<LangVersion>8</LangVersion>
|
||||||
|
<Deterministic>false</Deterministic>
|
||||||
|
<AssemblyVersion>1.0.*</AssemblyVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"extends": [
|
||||||
|
"config:base"
|
||||||
|
]
|
||||||
|
}
|
Reference in New Issue