-
-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into Fix.Windows7
- Loading branch information
Showing
11 changed files
with
141 additions
and
12 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
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,6 +1,6 @@ | ||
choco install ilmerge | ||
choco install il-repack | ||
choco install GitVersion.Portable | ||
choco install wixtoolset | ||
choco install hub | ||
choco install dotnet-7.0-sdk --pre | ||
|
||
choco install dotnet-7.0-sdk | ||
choco install NuGet.CommandLine |
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
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
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,32 @@ | ||
pushd $PSScriptRoot\.. | ||
|
||
Get-Item .\artifacts\x64\gsudo.exe > $null || $(throw "Missing binaries/artifacts") | ||
|
||
if ($env:version) { | ||
"- Getting version from env:version" | ||
$version = $env:version | ||
$version_MajorMinorPatch=$env:version_MajorMinorPatch | ||
} else { | ||
"- Getting version using GitVersion" | ||
$version = $(gitversion /showvariable LegacySemVer) | ||
$version_MajorMinorPatch=$(gitversion /showvariable MajorMinorPatch) | ||
} | ||
"- Using version number v$version / v$version_MajorMinorPatch" | ||
|
||
"- Cleaning Nuget template folder" | ||
git clean .\Build\Nuget\gsudo -xf | ||
|
||
"- Generate gsudo.nuspec" | ||
(Get-Content Build\Nuget\gsudo.nuspec.template) -replace '#VERSION#', "$version" | Out-File -encoding UTF8 .\Build\Nuget\gsudo.nuspec | ||
|
||
|
||
"- Packing v$version to nuget" | ||
mkdir Artifacts\Nuget -Force > $null | ||
& nuget pack .\Build\Nuget\gsudo.nuspec -OutputDirectory "$((get-item Artifacts\Nuget).FullName)" || $(throw "Nuget pack failed.") | ||
|
||
"`n- Uploading v$version to Nuget" | ||
nuget push artifacts\nuget\gsudo.$($version).nupkg -Source https://api.nuget.org/v3/index.json || $(throw "Nuget push failed.") | ||
|
||
|
||
"- Success" | ||
popd |
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,56 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. --> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd"> | ||
<metadata> | ||
<!-- == PACKAGE SPECIFIC SECTION == --> | ||
<!-- This section is about this package, although id and version have ties back to the software --> | ||
<!-- id is lowercase and if you want a good separator for words, use '-', not '.'. Dots are only acceptable as suffixes for certain types of packages, e.g. .install, .portable, .extension, .template --> | ||
<!-- If the software is cross-platform, attempt to use the same id as the debian/rpm package(s) if possible. --> | ||
<id>gsudo</id> | ||
<!-- version should MATCH as closely as possible with the underlying software --> | ||
<!-- Is the version a prerelease of a version? https://docs.nuget.org/create/versioning#creating-prerelease-packages --> | ||
<!-- Note that unstable versions like 0.0.1 can be considered a released version, but it's possible that one can release a 0.0.1-beta before you release a 0.0.1 version. If the version number is final, that is considered a released version and not a prerelease. --> | ||
<version>#VERSION#</version> | ||
<owners>Gerardo Grignoli</owners> | ||
<!-- ============================== --> | ||
|
||
<!-- == SOFTWARE SPECIFIC SECTION == --> | ||
<!-- This section is about the software itself --> | ||
<title>gsudo - a sudo for windows</title> | ||
<authors>Gerardo Grignoli & GitHub contributors</authors> | ||
<!-- projectUrl is required for the community feed --> | ||
<!--<iconUrl>http://cdn.rawgit.com/gerardog/master/icons/gsudo.png</iconUrl>--> | ||
<copyright>2023 Gerardo Grignoli</copyright> | ||
<licenseUrl>https://opensource.org/licenses/MIT</licenseUrl> | ||
<description> | ||
`gsudo` allows to run commands with elevated permissions within the current console. | ||
It is a `sudo` equivalent for Windows, with a similar user-experience as the original *nix sudo. | ||
|
||
Elevated commands are shown in the caller (non-elevated) console, no switching to another console required. | ||
|
||
http://github.com/gerardog/gsudo | ||
|
||
### Usage | ||
|
||
```gsudo [command] [arguments]``` | ||
Executes the specified command, elevated, and returns. | ||
|
||
Examples | ||
|
||
```gsudo notepad c:\Windows\System32\drivers\etc\hosts``` | ||
```gsudo cmd``` | ||
|
||
</description> | ||
<releaseNotes>http://github.com/gerardog/gsudo/releases/v#VERSION#</releaseNotes> | ||
|
||
<contentFiles> | ||
<files include="any/any/gsudo/**/gsudo.exe" buildAction="None" copyToOutput="true" flatten="false"/> | ||
</contentFiles> | ||
</metadata> | ||
<files> | ||
<file src="..\..\artifacts\x64\gsudo.exe" target="contentFiles\any\any\gsudo\x64" /> | ||
<file src="..\..\artifacts\x86\gsudo.exe" target="contentFiles\any\any\gsudo\x86" /> | ||
<file src="..\..\artifacts\arm64\gsudo.exe" target="contentFiles\any\any\gsudo\arm64" /> | ||
<file src="..\..\artifacts\net46-anycpu\gsudo.exe" target="contentFiles\any\any\gsudo\net46-AnyCpu" /> | ||
</files> | ||
</package> |
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