This commit is contained in:
Jeffrey Ye 2018-08-05 22:31:12 -07:00
Родитель 7e49ff4600
Коммит 76c4f9cf9f
2 изменённых файлов: 23 добавлений и 10 удалений

Просмотреть файл

@ -4,9 +4,14 @@ This is a port of [ILSpy](https://github.com/icsharpcode/ILSpy)
![](https://github.com/jeffreye/AvaloniaILSpy/raw/master/preview.png)
## Requirements
You may need to install libgdiplus
# Bleeding-edge Builds
| Version | Installers (for x 64) |
|---------|------------|
|**Windows**|[Download](https://ci.appveyor.com/api/projects/jeffreye/AvaloniaILSpy/artifacts/artifacts/zips/AvaloniaILSpy-win7-x64-Release.zip)|
|**macOS**|[Download](https://ci.appveyor.com/api/projects/jeffreye/AvaloniaILSpy/artifacts/artifacts/zips/AvaloniaILSpy-osx.10.12-x64-Release.zip)|
|**Ubuntu**|[Download](https://ci.appveyor.com/api/projects/jeffreye/AvaloniaILSpy/artifacts/artifacts/zips/AvaloniaILSpy-ubuntu.14.04-x64-Release.zip)|
|**Debian**|[Download](https://ci.appveyor.com/api/projects/jeffreye/AvaloniaILSpy/artifacts/artifacts/zips/AvaloniaILSpy-debian.8-x64-Release.zip)|
Unix: `sudo apt-get install libgdiplus`
Macos: `brew install mono-libgdiplus`
How to run on Linux/macOS:
- grant it the rights to execute `chmod a+x AvaloniaILSpy`
- run `./AvaloniaILSpy`

Просмотреть файл

@ -61,6 +61,7 @@ var netCoreProject = new {
Framework = netCoreProject.Framework,
Configuration = configuration,
Runtime = runtime,
SelfContained = true,
OutputDirectory = outputDir.FullPath
});
@ -69,11 +70,18 @@ var netCoreProject = new {
Information("Patching executable subsystem for: {0}, runtime: {1}", netCoreProject.Name, runtime);
var editbin = runtime == "win7-x86"? editbin86: editbin64;
var targetExe = outputDir.CombineWithFilePath(netCoreProject.Name + ".exe");
var exitCodeWithArgument = StartProcess(editbin, new ProcessSettings {
Arguments = "/subsystem:windows " + targetExe.FullPath
});
Information("The editbin command exit code: {0}", exitCodeWithArgument);
if (FileExists(editbin))
{
var targetExe = outputDir.CombineWithFilePath(netCoreProject.Name + ".exe");
var exitCodeWithArgument = StartProcess(editbin, new ProcessSettings {
Arguments = "/subsystem:windows " + targetExe.FullPath
});
Information("The editbin command exit code: {0}", exitCodeWithArgument);
}
else
{
Information("editbin for {0}, runtime: {1} does not exist", netCoreProject.Name, runtime);
}
}
}
});