Bundle mac version of 7z; remove NuGet.exe

This commit is contained in:
Caelan Sayler
2022-05-14 17:18:02 +01:00
parent bfb41efec7
commit f849029509
9 changed files with 9 additions and 6 deletions

View File

@@ -153,10 +153,8 @@ jobs:
name: tools name: tools
- name: Decompress OSX - name: Decompress OSX
run: | run: |
ls -la ./build
ls -la ./build/publish
unzip ./squirrel-osx-x64.zip -d ./build/publish unzip ./squirrel-osx-x64.zip -d ./build/publish
ls -la ./build/publish mv ./build/publish/7zz ./build/publish/bin/
- name: Create NuGet Package - name: Create NuGet Package
run: | run: |
export NUGET_VERSION=$(nbgv get-version -f json | python3 -c "import sys, json; print(json.load(sys.stdin)['NuGetPackageVersion'])") export NUGET_VERSION=$(nbgv get-version -f json | python3 -c "import sys, json; print(json.load(sys.stdin)['NuGetPackageVersion'])")

View File

@@ -33,13 +33,13 @@ dotnet publish -v minimal -c Release -r win-x86 --self-contained=true "$PSScript
# Copy over all files we need # Copy over all files we need
Write-Output "Copying files to all the right places" Write-Output "Copying files to all the right places"
Copy-Item -Path "$PSScriptRoot\vendor\7zip\*" -Destination "$BinOut" -Recurse
Copy-Item -Path "$PSScriptRoot\vendor\wix\*" -Destination "$BinOut" -Recurse Copy-Item -Path "$PSScriptRoot\vendor\wix\*" -Destination "$BinOut" -Recurse
Copy-Item "$In\Win32\Setup.exe" -Destination "$BinOut" Copy-Item "$In\Win32\Setup.exe" -Destination "$BinOut"
Copy-Item "$In\Win32\StubExecutable.exe" -Destination "$BinOut" Copy-Item "$In\Win32\StubExecutable.exe" -Destination "$BinOut"
Copy-Item "$PSScriptRoot\vendor\rcedit.exe" -Destination "$BinOut" Copy-Item "$PSScriptRoot\vendor\rcedit.exe" -Destination "$BinOut"
Copy-Item "$PSScriptRoot\vendor\signtool.exe" -Destination "$BinOut" Copy-Item "$PSScriptRoot\vendor\signtool.exe" -Destination "$BinOut"
Copy-Item "$PSScriptRoot\vendor\singlefilehost.exe" -Destination "$BinOut" Copy-Item "$PSScriptRoot\vendor\singlefilehost.exe" -Destination "$BinOut"
Copy-Item -Path "$PSScriptRoot\vendor\7za.exe" -Destination "$BinOut"
# Clean up files we do not need to create a nuget package # Clean up files we do not need to create a nuget package
Write-Output "Cleaning up intermediate files" Write-Output "Cleaning up intermediate files"

View File

@@ -1,7 +1,8 @@
{ {
"source": [ "source": [
"./osx-build/SquirrelMac", "./osx-build/SquirrelMac",
"./osx-build/UpdateMac" "./osx-build/UpdateMac",
"./vendor/7zz"
], ],
"bundle_id": "com.caesay.squirrel", "bundle_id": "com.caesay.squirrel",
"sign": { "sign": {

View File

@@ -44,11 +44,15 @@ namespace Squirrel.CommandLine
{ {
var findCommand = SquirrelRuntimeInfo.IsWindows ? "where" : "which"; var findCommand = SquirrelRuntimeInfo.IsWindows ? "where" : "which";
// first search the usual places
foreach (var n in names) { foreach (var n in names) {
var helper = FindHelperFile(n, throwWhenNotFound: false); var helper = FindHelperFile(n, throwWhenNotFound: false);
if (helper != null) if (helper != null)
return helper; return helper;
}
// then see if there is something on the path
foreach (var n in names) {
var result = ProcessUtil.InvokeProcess(findCommand, new[] { n }, null, CancellationToken.None); var result = ProcessUtil.InvokeProcess(findCommand, new[] { n }, null, CancellationToken.None);
if (result.ExitCode == 0) { if (result.ExitCode == 0) {
return n; return n;

BIN
vendor/7za.exe vendored Normal file

Binary file not shown.

BIN
vendor/7zip/7z.dll vendored

Binary file not shown.

BIN
vendor/7zip/7z.exe vendored

Binary file not shown.

BIN
vendor/7zz vendored Normal file

Binary file not shown.

BIN
vendor/NuGet.exe vendored

Binary file not shown.