-
Notifications
You must be signed in to change notification settings - Fork 1k
feat: skip generating _ExecutionStub.exe if it already exists #1903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
beyondkmp
wants to merge
5
commits into
Squirrel:develop
Choose a base branch
from
beyondkmp:develop
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+10
−2
Open
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
cb7c2a5
Skip generating _ExecutionStub.exe if it already exists
beyondkmp 0c74944
update clrf
beyondkmp 1f35efe
update actions/upload-artifact to v4
beyondkmp cc2d436
exclude _ExecutionStub.exe self
beyondkmp cbc4887
revert build_official.cmd
beyondkmp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,86 +1,86 @@ | ||
| @echo off | ||
|
|
||
| setlocal | ||
| pushd %~dp0 | ||
|
|
||
| :parse_args | ||
| if not "%1"=="" shift & goto parse_args | ||
|
|
||
| :: Init | ||
|
|
||
| if "%VCToolsVersion%"=="" call :StartDeveloperCommandPrompt || exit /b | ||
|
|
||
|
|
||
| :: Clean | ||
|
|
||
| rd /s /q ..\build ..\packages 2> nul | ||
|
|
||
|
|
||
| :: Build | ||
|
|
||
| nuget restore ..\Squirrel.sln || exit /b | ||
|
|
||
| msbuild -Restore ..\Squirrel.sln -p:Configuration=Release -v:m -m -nr:false -bl:..\build\logs\build.binlog || exit /b | ||
|
|
||
|
|
||
| :: Pack .nupkg | ||
|
|
||
| nuget pack Squirrel.nuspec -OutputDirectory ..\build\artifacts || exit /b | ||
|
|
||
|
|
||
| :: Layout electron-winstaller | ||
| :: | ||
| :: The NPM package electron-winstaller allows developers to | ||
| :: build Windows installers for Electron apps using Squirrel | ||
| :: (https://github.com/electron/windows-installer) | ||
| :: | ||
| :: The following 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). | ||
|
|
||
| md ..\build\artifacts\electron-winstaller\vendor | ||
|
|
||
| copy ..\build\Release\net45\Update.exe ..\build\artifacts\electron-winstaller\vendor\Squirrel.exe || exit /b | ||
| copy ..\build\Release\net45\update.com ..\build\artifacts\electron-winstaller\vendor\Squirrel.com || exit /b | ||
| copy ..\build\Release\net45\Update.pdb ..\build\artifacts\electron-winstaller\vendor\Squirrel.pdb || exit /b | ||
| copy ..\build\Release\Win32\Setup.exe ..\build\artifacts\electron-winstaller\vendor || exit /b | ||
| copy ..\build\Release\Win32\Setup.pdb ..\build\artifacts\electron-winstaller\vendor || exit /b | ||
| copy ..\build\Release\net45\Update-Mono.exe ..\build\artifacts\electron-winstaller\vendor\Squirrel-Mono.exe || exit /b | ||
| copy ..\build\Release\net45\Update-Mono.pdb ..\build\artifacts\electron-winstaller\vendor\Squirrel-Mono.pdb || exit /b | ||
| copy ..\build\Release\Win32\StubExecutable.exe ..\build\artifacts\electron-winstaller\vendor || exit /b | ||
| copy ..\build\Release\net45\SyncReleases.exe ..\build\artifacts\electron-winstaller\vendor || exit /b | ||
| copy ..\build\Release\net45\SyncReleases.pdb ..\build\artifacts\electron-winstaller\vendor || exit /b | ||
| copy ..\build\Release\Win32\WriteZipToSetup.exe ..\build\artifacts\electron-winstaller\vendor || exit /b | ||
| copy ..\build\Release\Win32\WriteZipToSetup.pdb ..\build\artifacts\electron-winstaller\vendor || exit /b | ||
|
|
||
|
|
||
| goto LExit | ||
|
|
||
| :StartDeveloperCommandPrompt | ||
| if not "%SquirrelSkipVsDevCmd%"=="" ( | ||
| echo Skipping initializing developer command prompt | ||
| exit /b | ||
| ) | ||
|
|
||
| echo Initializing developer command prompt | ||
|
|
||
| if not exist "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" ( | ||
| "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" | ||
| exit /b 2 | ||
| ) | ||
|
|
||
| for /f "usebackq delims=" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -version [16.0^,18.0^) -property installationPath`) do ( | ||
| if exist "%%i\Common7\Tools\vsdevcmd.bat" ( | ||
| call "%%i\Common7\Tools\vsdevcmd.bat" -no_logo | ||
| exit /b | ||
| ) | ||
| echo developer command prompt not found in %%i | ||
| ) | ||
|
|
||
| echo No versions of developer command prompt found | ||
| exit /b 2 | ||
|
|
||
| :LExit | ||
|
|
||
| popd | ||
| endlocal | ||
| @echo off | ||
| setlocal | ||
| pushd %~dp0 | ||
| :parse_args | ||
| if not "%1"=="" shift & goto parse_args | ||
| :: Init | ||
| if "%VCToolsVersion%"=="" call :StartDeveloperCommandPrompt || exit /b | ||
| :: Clean | ||
| rd /s /q ..\build ..\packages 2> nul | ||
| :: Build | ||
| nuget restore ..\Squirrel.sln || exit /b | ||
| msbuild -Restore ..\Squirrel.sln -p:Configuration=Release -v:m -m -nr:false -bl:..\build\logs\build.binlog || exit /b | ||
| :: Pack .nupkg | ||
| nuget pack Squirrel.nuspec -OutputDirectory ..\build\artifacts || exit /b | ||
| :: Layout electron-winstaller | ||
| :: | ||
| :: The NPM package electron-winstaller allows developers to | ||
| :: build Windows installers for Electron apps using Squirrel | ||
| :: (https://github.com/electron/windows-installer) | ||
| :: | ||
| :: The following 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). | ||
| md ..\build\artifacts\electron-winstaller\vendor | ||
| copy ..\build\Release\net45\Update.exe ..\build\artifacts\electron-winstaller\vendor\Squirrel.exe || exit /b | ||
| copy ..\build\Release\net45\update.com ..\build\artifacts\electron-winstaller\vendor\Squirrel.com || exit /b | ||
| copy ..\build\Release\net45\Update.pdb ..\build\artifacts\electron-winstaller\vendor\Squirrel.pdb || exit /b | ||
| copy ..\build\Release\Win32\Setup.exe ..\build\artifacts\electron-winstaller\vendor || exit /b | ||
| copy ..\build\Release\Win32\Setup.pdb ..\build\artifacts\electron-winstaller\vendor || exit /b | ||
| copy ..\build\Release\net45\Update-Mono.exe ..\build\artifacts\electron-winstaller\vendor\Squirrel-Mono.exe || exit /b | ||
| copy ..\build\Release\net45\Update-Mono.pdb ..\build\artifacts\electron-winstaller\vendor\Squirrel-Mono.pdb || exit /b | ||
| copy ..\build\Release\Win32\StubExecutable.exe ..\build\artifacts\electron-winstaller\vendor || exit /b | ||
| copy ..\build\Release\net45\SyncReleases.exe ..\build\artifacts\electron-winstaller\vendor || exit /b | ||
| copy ..\build\Release\net45\SyncReleases.pdb ..\build\artifacts\electron-winstaller\vendor || exit /b | ||
| copy ..\build\Release\Win32\WriteZipToSetup.exe ..\build\artifacts\electron-winstaller\vendor || exit /b | ||
| copy ..\build\Release\Win32\WriteZipToSetup.pdb ..\build\artifacts\electron-winstaller\vendor || exit /b | ||
| goto LExit | ||
| :StartDeveloperCommandPrompt | ||
| if not "%SquirrelSkipVsDevCmd%"=="" ( | ||
| echo Skipping initializing developer command prompt | ||
| exit /b | ||
| ) | ||
| echo Initializing developer command prompt | ||
| if not exist "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" ( | ||
| "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" | ||
| exit /b 2 | ||
| ) | ||
| for /f "usebackq delims=" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -version [16.0^,18.0^) -property installationPath`) do ( | ||
| if exist "%%i\Common7\Tools\vsdevcmd.bat" ( | ||
| call "%%i\Common7\Tools\vsdevcmd.bat" -no_logo | ||
| exit /b | ||
| ) | ||
| echo developer command prompt not found in %%i | ||
| ) | ||
| echo No versions of developer command prompt found | ||
| exit /b 2 | ||
| :LExit | ||
| popd | ||
| endlocal |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be entirely whitespace changes, is that intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I changed \r to \r\n because it was causing errors on my machine.
However, since it works fine on GitHub Actions, I reverted the change.