Skip to content

Commit

Permalink
feat: MICA
Browse files Browse the repository at this point in the history
  • Loading branch information
emako committed Dec 4, 2024
1 parent aed79b5 commit 6328e05
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 1 deletion.
22 changes: 22 additions & 0 deletions build/MicaSetup.Tools/MICA/MICA.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net472</TargetFramework>
<LangVersion>latest</LangVersion>
<AssemblyVersion>2.3.2.0</AssemblyVersion>
<FileVersion>2.3.2.0</FileVersion>
<Version>$(VersionPrefix)2.3.2.0</Version>
<ApplicationIcon>Resources\Images\Favicon.ico</ApplicationIcon>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>

<ItemGroup>
<None Remove="Resources\Images\*.png" />
</ItemGroup>

<ItemGroup>
<Resource Include="Resources\Images\*.png" />
</ItemGroup>

</Project>
30 changes: 30 additions & 0 deletions build/MicaSetup.Tools/MICA/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
using System.Diagnostics;
using System.IO;

namespace MICA;

internal sealed class Program
{
private static void Main()
{
try
{
string currentDirectory = Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName);

if (!string.IsNullOrEmpty(currentDirectory))
{
using Process Process = Process.Start(new ProcessStartInfo
{
FileName = currentDirectory,
UseShellExecute = true,
CreateNoWindow = true,
Verb = "open",
});
}
}
catch
{
///
}
}
}
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion build/micasetup.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Output": "./${AppName}_v${Version}.exe",
"AppName": "MicaSetup",
"KeyName": "MicaSetup",
"ExeName": "makemica.exe",
"ExeName": "MICA.exe",
"Publisher": "Lemutec",
"Version": "${Package}${ExeName}|3",
"TargetFramework": "net472",
Expand Down
2 changes: 2 additions & 0 deletions build/tools_build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ rd /s /q .\Build\
mkdir .\Build\
mkdir .\Build\bin\

copy /y .\MicaSetup.Tools\MICA\bin\Release\publish\MICA.exe .\Build\

@REM copy /y .\MicaSetup.Tools\MakeMica\bin\Release\publish\MakeMica.exe .\Build\
@REM del .\Build\makemicaw.exe
@REM ren .\Build\MakeMica.exe makemicaw.exe
Expand Down
11 changes: 11 additions & 0 deletions src/MicaSetup.sln
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FetchVer", "..\build\MicaSe
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PEParser", "..\build\MicaSetup.Tools\PEImage\PEParser.csproj", "{3F68B574-953E-4085-8B4D-F7BC88780823}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MICA", "..\build\MicaSetup.Tools\MICA\MICA.csproj", "{F8B6AEEB-6766-447B-BF96-CD9B142545A3}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -109,6 +111,14 @@ Global
{3F68B574-953E-4085-8B4D-F7BC88780823}.Release|Any CPU.Build.0 = Release|Any CPU
{3F68B574-953E-4085-8B4D-F7BC88780823}.Release|x64.ActiveCfg = Release|Any CPU
{3F68B574-953E-4085-8B4D-F7BC88780823}.Release|x64.Build.0 = Release|Any CPU
{F8B6AEEB-6766-447B-BF96-CD9B142545A3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F8B6AEEB-6766-447B-BF96-CD9B142545A3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F8B6AEEB-6766-447B-BF96-CD9B142545A3}.Debug|x64.ActiveCfg = Debug|Any CPU
{F8B6AEEB-6766-447B-BF96-CD9B142545A3}.Debug|x64.Build.0 = Debug|Any CPU
{F8B6AEEB-6766-447B-BF96-CD9B142545A3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F8B6AEEB-6766-447B-BF96-CD9B142545A3}.Release|Any CPU.Build.0 = Release|Any CPU
{F8B6AEEB-6766-447B-BF96-CD9B142545A3}.Release|x64.ActiveCfg = Release|Any CPU
{F8B6AEEB-6766-447B-BF96-CD9B142545A3}.Release|x64.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -124,6 +134,7 @@ Global
{AE27428B-858E-4596-9202-FD5EF69D545F} = {A4B4936D-02F8-4D9F-A441-51FDF1983EE0}
{1691F4F1-B8C3-444E-A5C4-9B0ACCC3CF1F} = {A4B4936D-02F8-4D9F-A441-51FDF1983EE0}
{3F68B574-953E-4085-8B4D-F7BC88780823} = {A4B4936D-02F8-4D9F-A441-51FDF1983EE0}
{F8B6AEEB-6766-447B-BF96-CD9B142545A3} = {A4B4936D-02F8-4D9F-A441-51FDF1983EE0}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {F356859C-CA7E-4434-BCDA-5BC25D53D330}
Expand Down

0 comments on commit 6328e05

Please sign in to comment.