-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build and release documentation and script.
- Loading branch information
Showing
10 changed files
with
178 additions
and
4 deletions.
There are no files selected for viewing
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,3 +1,20 @@ | ||
### Developer Setup Notes | ||
|
||
1. *Optional:* Install the [Extensibility Essentials 2019](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ExtensibilityEssentials2019) Visual Studio extension. This includes very useful tools for obtaining command IDs and other things. | ||
1. Install **Visual Studio 2019 Community 16.3+** from [here](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&rel=16) | ||
|
||
* Select **all workloads** on the first panel | ||
* Click **Individual components**, type *Git* in the search box and select **Git for Windows** and **GitHub extension for Visual Studio** | ||
* Click **Install** (and take a coffee break) | ||
* Install **.NET Core SDK 3.1.301 (Windows .NET Core Installer x64)** from [here](https://dotnet.microsoft.com/download/visual-studio-sdks) | ||
* Apply any pending **Visual Studio updates** | ||
* **Close** Visual Studio and install any updates | ||
|
||
2. *Optional:* Install the [Extensibility Essentials 2019](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ExtensibilityEssentials2019) Visual Studio extension. This includes very useful tools for obtaining command IDs and other things. | ||
|
||
3. *Optional:* Configure the build **environment variables** required only for releasing the extension: | ||
|
||
* Open **File Explorer** | ||
* Navigate to the directory holding the cloned repository | ||
* **Right-click** on **buildenv.cmd** and then **Run as adminstrator** | ||
* Press ENTER to close the CMD window when the script is finished | ||
* Restart any Visual Studio instances or command windows to pick up the changes. |
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,12 @@ | ||
Raspberry Debugger is a Visual Studio extension intended for debugging .NET Core applications remotely on a Raspberry Pi. | ||
|
||
## Changes: | ||
|
||
**TODO:** Write something here! | ||
|
||
### Build Artifacts and SHA512 signatures: | ||
|
||
This is is the Raspberry Debugger VSIX package: | ||
|
||
> **RaspberryDebugger.vsix:** | ||
> `FILL THIS IN` |
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
Binary file not shown.
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,2 @@ | ||
@echo off | ||
powershell -file "%RDBG_TOOLBIN%\builder.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,58 @@ | ||
#------------------------------------------------------------------------------ | ||
# FILE: builder.ps1 | ||
# CONTRIBUTOR: Jeff Lill | ||
# COPYRIGHT: Copyright (c) 2005-2020 by neonFORGE, LLC. All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# Performs a clean build of the RaspberryDebugger and publishes the binary | ||
# to the [$/build] folder. | ||
# | ||
# USAGE: powershell -file ./builder.ps1 | ||
|
||
$rdbgRoot = "$env:RDBG_ROOT" | ||
$rdbgBuild = "$env:RDBG_BUILD" | ||
$rdbgTools = "$rdbgRoot\Tools" | ||
|
||
# NOTE: | ||
# | ||
# MSBUILD.EXE and DEVENV.EXE don't appear to be capable of actually building thr VSIX. | ||
# MSBUILD fails because an EXE appears to be referenced by the project and DEVENV | ||
# builds the [SdkCatalogChecker] but not the VSIX. | ||
# | ||
# So the VSIX will need to be built manually first. | ||
|
||
$originalDir = $pwd | ||
cd $rdbgRoot | ||
|
||
# Copy the VSIX package to the build folder. | ||
|
||
copy $rdbgRoot\RaspberryDebugger\bin\Release\RaspberryDebugger.vsix $rdbgBuild | ||
|
||
# Generate the SHA512 hash. | ||
|
||
"" | ||
"SHA512: RaspberryDebugger.vsix..." | ||
"" | ||
|
||
& cat "$rdbgBuild\RaspberryDebugger.vsix" | openssl dgst -sha512 -hex > "$rdbgBuild\RaspberryDebugger.vsix.sha512.txt" | ||
|
||
if (-not $?) | ||
{ | ||
"" | ||
"*** SHA512 generation failed ***" | ||
"" | ||
exit 1 | ||
} | ||
|
||
cd $originalDir |
Binary file not shown.
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,47 @@ | ||
@echo on | ||
REM Configures the environment variables required to build RaspberryDebugger projects. | ||
REM | ||
REM buildenv [ <source folder> ] | ||
REM | ||
REM Note that <source folder> defaults to the folder holding this | ||
REM batch file. | ||
REM | ||
REM This must be [RUN AS ADMINISTRATOR]. | ||
|
||
REM Default RDBG_ROOT to the folder holding this batch file after stripping | ||
REM off the trailing backslash. | ||
|
||
set RDBG_ROOT=%~dp0 | ||
set RDBG_ROOT=%RDBG_ROOT:~0,-2% | ||
|
||
if not [%1]==[] set RDBG_ROOT=%1 | ||
|
||
if exist %RDBG_ROOT%\RaspberryDebugger.sln goto goodPath | ||
echo The [%RDBG_ROOT%\RaspberryDebugger.sln] file does not exist. Please pass the path | ||
echo to the RaspberryDebugger solution folder. | ||
goto done | ||
|
||
:goodPath | ||
|
||
REM Configure the environment variables. | ||
|
||
set RDBG_TOOLBIN=%RDBG_ROOT%\ToolBin | ||
set RDBG_BUILD=%RDBG_ROOT%\Build | ||
set RDBG_TEMP=C:\Temp | ||
|
||
REM Persist the environment variables. | ||
|
||
setx RDBG_ROOT "%RDBG_ROOT%" /M | ||
setx RDBG_TOOLBIN "%RDBG_TOOLBIN%" /M | ||
setx RDBG_BUILD "%RDBG_BUILD%" /M | ||
setx RDBG_TEMP "%RDBG_TEMP%" /M | ||
setx DOTNET_CLI_TELEMETRY_OPTOUT 1 /M | ||
|
||
REM Make sure required folders exist. | ||
|
||
if not exist "%RDBG_TEMP%" mkdir "%RDBG_TEMP%" | ||
if not exist "%RDBG_TOOLBIN%" mkdir "%RDBG_TOOLBIN%" | ||
if not exist "%RDBG_BUILD%" mkdir "%RDBG_BUILD%" | ||
|
||
:done | ||
pause |