mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Bundle mac version of 7z; remove NuGet.exe
This commit is contained in:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -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'])")
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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": {
|
||||||
|
|||||||
@@ -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
BIN
vendor/7za.exe
vendored
Normal file
Binary file not shown.
BIN
vendor/7zip/7z.dll
vendored
BIN
vendor/7zip/7z.dll
vendored
Binary file not shown.
BIN
vendor/7zip/7z.exe
vendored
BIN
vendor/7zip/7z.exe
vendored
Binary file not shown.
BIN
vendor/7zz
vendored
Normal file
BIN
vendor/7zz
vendored
Normal file
Binary file not shown.
BIN
vendor/NuGet.exe
vendored
BIN
vendor/NuGet.exe
vendored
Binary file not shown.
Reference in New Issue
Block a user