This repository was archived by the owner on Jul 5, 2024. It is now read-only.
forked from Squirrel/Squirrel.Windows
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
44 additions
and
145 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
powershell -ExecutionPolicy Bypass -File ./build.ps1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Stop the script if an error occurs | ||
$ErrorActionPreference = "Stop" | ||
$In = ".\build\Release\" | ||
$Out = ".\build\publish\" | ||
$Folders = @("./build", "./packages", "./test/bin", "./test/obj") | ||
|
||
# Ensure a clean state by removing build/package folders | ||
foreach ($Folder in $Folders) { | ||
if (Test-Path $Folder) { | ||
Remove-Item -path $Folder -Recurse -Force | ||
} | ||
} | ||
|
||
# Build Squirrel C++ and library files | ||
msbuild /restore /p:Configuration=Release | ||
|
||
# Build single-exe packaged projects | ||
dotnet publish -c Release src\Update\Update.csproj -o $Out | ||
dotnet publish -c Release src\SyncReleases\SyncReleases.csproj -o $Out | ||
|
||
# Copy over all files we need | ||
# Copy-Item "$In\net45\Update.exe" -Destination "$Out\Squirrel.exe" | ||
# Copy-Item "$In\net45\update.com" -Destination "$Out\Squirrel.com" | ||
# Copy-Item "$In\net45\Update.pdb" -Destination "$Out\Squirrel.pdb" | ||
Copy-Item "$In\Win32\Setup.exe" -Destination $Out | ||
Copy-Item "$In\Win32\Setup.pdb" -Destination $Out | ||
# Copy-Item "$In\net45\Update-Mono.exe" -Destination "$Out\Squirrel-Mono.exe" | ||
# Copy-Item "$In\net45\Update-Mono.pdb" -Destination "$Out\Squirrel-Mono.pdb" | ||
Copy-Item "$In\Win32\StubExecutable.exe" -Destination $Out | ||
# Copy-Item "$In\net45\SyncReleases.exe" -Destination $Out | ||
# Copy-Item "$In\net45\SyncReleases.pdb" -Destination $Out | ||
Copy-Item "$In\Win32\WriteZipToSetup.exe" -Destination $Out | ||
Copy-Item "$In\Win32\WriteZipToSetup.pdb" -Destination $Out | ||
|
||
Write-Output "Successfully copied files to './build/publish'" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,22 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net45</TargetFramework> | ||
<TargetFramework>net48</TargetFramework> | ||
<Description>Squirrel.Tests</Description> | ||
<Title>Squirrel.Tests</Title> | ||
<IsPackable>false</IsPackable> | ||
<IsTest>true</IsTest> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\src\Squirrel\Squirrel.csproj" /> | ||
<ProjectReference Include="..\vendor\nuget\src\Core\Core.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Reference Include="Microsoft.CSharp" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" /> | ||
<PackageReference Include="xunit" Version="2.0.0" /> | ||
<PackageReference Include="xunit.runner.visualstudio" Version="2.0.0" PrivateAssets="All" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\src\Squirrel\Squirrel.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |