File tree Expand file tree Collapse file tree 4 files changed +10
-50
lines changed Expand file tree Collapse file tree 4 files changed +10
-50
lines changed Original file line number Diff line number Diff line change 32
32
mkdir release\pwsh
33
33
xcopy README.md release\
34
34
xcopy pwsh.bat release\
35
- xcopy run_pwsh.xml release\pwsh\
36
35
xcopy SharpShell.Loader\bin\Debug\net6.0\SharpShell.Loader.dll release\pwsh\
36
+ xcopy SharpShell.Loader\bin\Debug\net6.0\SharpShell.Loader.runtimeconfig.json release\pwsh\
37
37
38
38
7z a -tzip SharpShell.zip .\release\*
39
39
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ internal class Program
8
8
{
9
9
// See generate_embedded.py
10
10
private static readonly string [ ] BlacklistedDependencies = [ "System.Management.Automation" ] ;
11
+ private static readonly string rootPath = Environment . GetEnvironmentVariable ( "PWSH_ROOT_PATH" )
12
+ ?? throw new Exception ( "No PWSH_ROOT_PATH env variable found!" ) ;
11
13
12
14
static void Main ( string [ ] args )
13
15
{
@@ -25,7 +27,7 @@ static void Main(string[] args)
25
27
return AssemblyLoadContext . Default . LoadFromStream ( ms ) ;
26
28
}
27
29
28
- var dllLocalPath = Path . Combine ( Directory . GetCurrentDirectory ( ) , name + ".dll" ) ;
30
+ var dllLocalPath = Path . Combine ( rootPath , name + ".dll" ) ;
29
31
if ( BlacklistedDependencies . Contains ( name ) )
30
32
return AssemblyLoadContext . Default . LoadFromAssemblyPath ( dllLocalPath ) ;
31
33
Original file line number Diff line number Diff line change 1
1
@ echo off
2
2
3
3
set DOTNET_CLI_TELEMETRY_OPTOUT = 1
4
- cd /d D:\pwsh
5
- ..\dotnet\dotnet.exe msbuild .\run_pwsh.xml -p:CommandLineArgs=" %* "
4
+ set PWSH_ROOT_PATH = D:\pwsh
5
+ set DOTNET_ROOT_PATH = D:\dotnet
6
+
7
+ copy %PWSH_ROOT_PATH% \SharpShell.Loader.dll T:\SharpShell.Loader.dll > NUL
8
+ copy %PWSH_ROOT_PATH% \SharpShell.Loader.runtimeconfig.json T:\SharpShell.Loader.runtimeconfig.json > NUL
9
+ %DOTNET_ROOT_PATH% \dotnet.exe T:\SharpShell.Loader.dll %*
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments