Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 38 additions & 4 deletions .github/workflows/compile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,47 @@ jobs:

# Nuget
- uses: nuget/setup-nuget@v1
- run: nuget restore Spedit.sln
- run: nuget restore Spcode.sln

# Setup MSBuild
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.0


# Build Project
- name: Build Project
run: msbuild /p:Configuration=Release
# Build Spcode
- name: Build Spcode
run: msbuild Spcode.csproj /p:Configuration=Release

# Build Installer
- name: Build Installer (NSIS)
uses: joncloud/makensis-action@v1
with:
script-file: .\bin\Release\SPCode.nsi

- name: Artifact Installer
uses: actions/upload-artifact@v1
with:
name: SPCode.Installer.exe
path: .\bin\Release\SPCode.Installer.exe


# Compress Portable Version
- name: Compress Portable Version
run: .\bin\Release\Compress.ps1
shell: powershell

- name: Artifact Portable
uses: actions/upload-artifact@v1
with:
name: SPCode.Portable.zip
path: .\bin\Release\SPCode.Portable.zip

# Build Updater
- name: Build Updater
run: msbuild Deploy\SpcodeUpdater\SpcodeUpdater.csproj /p:Configuration=Release

- name: Artifact Updater
uses: actions/upload-artifact@v1
with:
name: SpcodeUpdater.exe
path: .\Deploy\SpcodeUpdater\bin\Release\SpcodeUpdater.exe
155 changes: 85 additions & 70 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,79 +3,94 @@ name: Publish Release
on:
push:
tags:
- '*'
- '*'

jobs:
build:

runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v2

# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.100

# Nuget
- uses: nuget/setup-nuget@v1
with:
nuget-version: '5.x'
- run: nuget restore Spedit.sln

# Setup MSBuild
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.0


# Build Project
- name: Build Project
run: msbuild /p:Configuration=Release

# Build Installer
- name: Build Installer (NSIS)
uses: joncloud/makensis-action@v1
with:
script-file: .\bin\Release\SPEdit.nsi

# Compress Portable Version
- name: Compress Portable Version
run: .\bin\Release\Compress.ps1
shell: powershell

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false


- name: Upload Installer
id: upload-installer
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: .\bin\Release\SPEdit.Installer.exe
asset_name: SPEdit.Installer.exe
asset_content_type: application/octet-stream

- name: Upload Portable
id: upload-portable
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: .\bin\Release\SPEdit.Portable.zip
asset_name: SPEdit.Portable.zip
asset_content_type: application/zip
- name: Checkout
uses: actions/checkout@v2

# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.100

# Nuget
- uses: nuget/setup-nuget@v1
with:
nuget-version: '5.x'
- run: nuget restore Spcode.sln

# Setup MSBuild
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.0


# Build Spcode
- name: Build Spcode
run: msbuild Spcode.csproj /p:Configuration=Release

# Build Installer
- name: Build Installer (NSIS)
uses: joncloud/makensis-action@v1
with:
script-file: .\bin\Release\SPCode.nsi

# Compress Portable Version
- name: Compress Portable Version
run: .\bin\Release\Compress.ps1
shell: powershell

# Build Updater
- name: Build Updater
run: msbuild Deploy\SpcodeUpdater\SpcodeUpdater.csproj /p:Configuration=Release

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false


- name: Upload Installer
id: upload-installer
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: .\bin\Release\SPCode.Installer.exe
asset_name: SPCode.Installer.exe
asset_content_type: application/octet-stream

- name: Upload Portable
id: upload-portable
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: .\bin\Release\SPCode.Portable.zip
asset_name: SPCode.Portable.zip
asset_content_type: application/zip

- name: Upload Updater
id: upload-updater
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: .\Deploy\SpcodeUpdater\bin\Release\SpcodeUpdater.exe
asset_name: SpcodeUpdater.exe
asset_content_type: application/octet-stream
2 changes: 1 addition & 1 deletion App/App.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
Expand Down
14 changes: 5 additions & 9 deletions App/AssemblyInfo1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Spedit")]
[assembly: AssemblyDescription("SPEdit - a lightweight sourcepawn editor")]
[assembly: AssemblyTitle("Spcode")]
[assembly: AssemblyDescription("SPCode - a lightweight sourcepawn editor")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SPEdit")]
[assembly: AssemblyCopyright("Copyright © Julien Kluge 2015")]
[assembly: AssemblyProduct("SPCode")]
[assembly: AssemblyCopyright("Copyright © Julien Kluge 2015 - Hexah 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: NeutralResourcesLanguage("en-US")]
Expand All @@ -30,8 +30,4 @@
// Build Number
// Revision
//
#if (DEBUG)
[assembly: AssemblyVersion("1.12.*")]
#else
[assembly: AssemblyVersion("1.3.6.1")]
#endif
[assembly: AssemblyVersion("1.4.0.0")]
4 changes: 2 additions & 2 deletions Deploy/Compress.ps1
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
$loc = Get-Location
Set-Location 'bin\Release\'
$compress = @{
LiteralPath= "sourcepawn/", "Spedit.exe", "MahApps.Metro.dll", "ICSharpCode.AvalonEdit.dll", "System.Windows.Interactivity.dll", "Xceed.Wpf.AvalonDock.dll", "Xceed.Wpf.AvalonDock.Themes.Metro.dll", "smxdasm.dll", "LysisForSpedit.dll", "QueryMaster.dll", "Ionic.BZip2.dll", "SourcepawnCondenser.dll", "Renci.SshNet.dll", "Newtonsoft.Json.dll", "DiscordRPC.dll", "ControlzEx.dll", "lang_0_spedit.xml", "GPLv3.txt"
LiteralPath= "sourcepawn/", "Spcode.exe", "MahApps.Metro.dll", "ICSharpCode.AvalonEdit.dll", "System.Windows.Interactivity.dll", "Xceed.Wpf.AvalonDock.dll", "Xceed.Wpf.AvalonDock.Themes.Metro.dll", "smxdasm.dll", "LysisForSpedit.dll", "QueryMaster.dll", "Ionic.BZip2.dll", "SourcepawnCondenser.dll", "Renci.SshNet.dll", "Newtonsoft.Json.dll", "DiscordRPC.dll", "ControlzEx.dll", "Octokit.dll", "lang_0_spcode.xml", "GPLv3.txt"
#Path= "sourcepawn/"
#CompressionLevel = "Fastest"
DestinationPath = "SPEdit.Portable.zip"
DestinationPath = "SPCode.Portable.zip"

}
Compress-Archive -Force @compress
Expand Down
Loading