diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 4d41745c..00000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -name: Bug report -about: Feedback to help us improve the project -title: '' -labels: '' -assignees: '' - ---- - -**Squirrel version(s)** -_Which version(s) of the project are you using?_ - -**Description** -_Replace this text with a short description of the problem_ - -**Steps to recreate** -1. Replace this -2. text with -3. the steps -4. to recreate - -**Expected behavior** -_Explain what it's doing and why it's wrong_ - -**Actual behavior** -_Explain what it should be doing after it's fixed_ - -**Additional information** -_Add any other context about the problem here_ diff --git a/.nuget/NuGet.exe b/.nuget/NuGet.exe deleted file mode 100644 index a34c3675..00000000 Binary files a/.nuget/NuGet.exe and /dev/null differ diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index fd4e7167..00000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,57 +0,0 @@ -pool: - name: Hosted VS2017 - demands: - - msbuild - - visualstudio - - vstest - -trigger: -- master -- develop - -variables: - solution: 'Squirrel.sln' - buildPlatform: 'Any CPU' - buildConfiguration: 'Release' - -steps: -- checkout: self - submodules: true - -- task: NuGetToolInstaller@1 - inputs: - versionSpec: 4.9.4 - -- task: NuGetCommand@2 - inputs: - restoreSolution: '$(solution)' - -- task: VSBuild@1 - inputs: - solution: '$(solution)' - platform: '$(buildPlatform)' - configuration: '$(buildConfiguration)' - -- task: VSTest@2 - inputs: - testAssemblyVer2: | - **\$(buildConfiguration)\*test*.dll - !**\obj\** - platform: '$(buildPlatform)' - configuration: '$(buildConfiguration)' - -- task: PublishSymbols@2 - inputs: - SearchPattern: '**\bin\**\*.pdb' - PublishSymbols: false - continueOnError: true - -- task: CopyFiles@2 - inputs: - SourceFolder: '$(system.defaultWorkingDirectory)' - Contents: '**\bin\$(buildConfiguration)\**' - TargetFolder: '$(build.artifactStagingDirectory)' - -- task: PublishBuildArtifacts@1 - inputs: - PathtoPublish: '$(build.artifactStagingDirectory)' diff --git a/build.cmd b/build.cmd new file mode 100644 index 00000000..fd63c4cd --- /dev/null +++ b/build.cmd @@ -0,0 +1 @@ +powershell -ExecutionPolicy Bypass -File ./build.ps1 \ No newline at end of file diff --git a/build.ps1 b/build.ps1 new file mode 100644 index 00000000..251d0d0e --- /dev/null +++ b/build.ps1 @@ -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'" diff --git a/package-electron-winstaller.ps1 b/package-electron-winstaller.ps1 deleted file mode 100644 index 73eabd7b..00000000 --- a/package-electron-winstaller.ps1 +++ /dev/null @@ -1,48 +0,0 @@ -<# -Package script for electron-winstaller - -The NPM package electron-winstaller allows developers to -build Windows installers for Electron apps using Squirrel -(https://github.com/electron/windows-installer) - -This script copies the required files into a single folder -which can then be copied to the electron-winstaller/vendor folder -(either manually or in an automated way). -#> - -# Stop the script if an error occurs -$ErrorActionPreference = "Stop" -$In = ".\build\Release\" -$Out = ".\build\electron-winstaller\" -$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 -git submodule update --init --recursive -.\.NuGet\NuGet.exe restore -msbuild /p:Configuration=Release - -# Create the electron-winstaller folder -New-Item -Path $Out -ItemType "directory" | Out-Null - -# 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 for electron-winstaller to build/electron-winstaller." diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 4353d9bb..bab5b445 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -10,7 +10,7 @@ $(BaseOutputPath)$(Configuration)\ 9.0 - false + true false GitHub diff --git a/test/Squirrel.Tests.csproj b/test/Squirrel.Tests.csproj index ae32d0c8..38d10134 100644 --- a/test/Squirrel.Tests.csproj +++ b/test/Squirrel.Tests.csproj @@ -1,25 +1,22 @@  + - net45 + net48 Squirrel.Tests Squirrel.Tests false true - - - - - - - - - + + + + +