-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dr.Abc
committed
Sep 1, 2024
1 parent
a1e2ccc
commit 0ce7045
Showing
7 changed files
with
190 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Release File | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu, windows, macos] | ||
arch: [x64] | ||
|
||
runs-on: ${{ matrix.os }}-latest | ||
|
||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.0.x | ||
|
||
- name: Publish | ||
shell: pwsh | ||
run: cd scripts && ./publish-all.ps1 -os ${{ matrix.os }} -arch ${{ matrix.arch }} | ||
|
||
- name: Zipping All | ||
if: matrix.os == 'windows' | ||
uses: vimtor/action-zip@v1 | ||
with: | ||
files: ./build | ||
dest: HLC.Net-${{ matrix.os }}-${{ matrix.arch }}.zip | ||
|
||
- name: Tarball All | ||
if: matrix.os != 'windows' | ||
run: tar -czvf ./HLC.Net-${{ matrix.os }}-${{ matrix.arch }}.tar.gz ./build | ||
|
||
- name: Create Release Unix | ||
if: matrix.os != 'windows' && startsWith(github.ref, 'refs/tags/') | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
name: HLC.Net-${{ github.ref }} | ||
files: | | ||
./HLC.Net-${{ matrix.os }}-${{ matrix.arch }}.tar.gz | ||
- name: Create Release Win | ||
if: matrix.os == 'windows' && startsWith(github.ref, 'refs/tags/') | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
name: HLC.Net-${{ github.ref }} | ||
files: | | ||
HLC.Net-${{ matrix.os }}-${{ matrix.arch }}.zip |
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,38 @@ | ||
|
||
# HLC.Net<img src="Assets/logo.png" align="right" width="120"/> | ||
|
||
Yet another spray creator for half-life series game (counter-strike, sven co-op, etc.) | ||
|
||
![Downloads](https://img.shields.io/github/downloads/DrAbcOfficial/HLC.Net/total?style=for-the-badge) | ||
![Repo Size](https://img.shields.io/github/repo-size/DrAbcOfficial/HLC.Net?style=for-the-badge) | ||
![Last Commit](https://img.shields.io/github/last-commit/DrAbcOfficial/HLC.Net?style=for-the-badge) | ||
|
||
|
||
---- | ||
# ✅Getting Start | ||
|
||
- [中文](READMECN.md) | ||
- Before you use this, will need install | ||
- Grab prebuild binary from [release](https://github.com/DrAbcOfficial/HLC.Net/releases), x64 only | ||
|
||
|
||
---- | ||
|
||
# ❓️Why | ||
|
||
- HLC spray creator can not run win11 properly any more | ||
|
||
|
||
# 💡HLC | ||
|
||
- [HLC](https://gamebanana.com/tools/5184) | ||
|
||
# 💁🏻How to use | ||
|
||
1. just like HLC, open an image and apply resize | ||
2. save | ||
|
||
# This repository used: | ||
|
||
1. [AvaloniaUI](https://avaloniaui.net/) | ||
2. [ImageSharp](https://github.com/SixLabors/ImageSharp) |
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,36 @@ | ||
|
||
# HLC.Net<img src="Assets/logo.png" align="right" width="120"/> | ||
|
||
又一个 half-life 系列游戏的喷漆制作器 (counter-strike, sven co-op, etc.) | ||
|
||
![Downloads](https://img.shields.io/github/downloads/DrAbcOfficial/HLC.Net/total?style=for-the-badge) | ||
![Repo Size](https://img.shields.io/github/repo-size/DrAbcOfficial/HLC.Net?style=for-the-badge) | ||
![Last Commit](https://img.shields.io/github/last-commit/DrAbcOfficial/HLC.Net?style=for-the-badge) | ||
|
||
|
||
---- | ||
# ✅快速开始 | ||
|
||
- 从 [release](https://github.com/DrAbcOfficial/HLC.Net/releases)获取预编译的执行文件,仅提供X64架构 | ||
|
||
|
||
---- | ||
|
||
# ❓️Why | ||
|
||
- 原始的HLC 制作器已经不能在Win11正常工作 | ||
|
||
|
||
# 💡HLC | ||
|
||
- [HLC](https://gamebanana.com/tools/5184) | ||
|
||
# 💁🏻怎么用 | ||
|
||
1. 就像HLC一样,选择一张图片,重新缩放后应用 | ||
2. 保存 | ||
|
||
# 这个储存库使用了 | ||
|
||
1. [AvaloniaUI](https://avaloniaui.net/) | ||
2. [ImageSharp](https://github.com/SixLabors/ImageSharp) |
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,36 @@ | ||
param( | ||
[Parameter()] | ||
[String]$arch = "x64", | ||
[String]$os = "windows" | ||
) | ||
$sharpos = "" | ||
switch ($os) | ||
{ | ||
"windows" {$sharpos = "win"} | ||
"macos" {$sharpos = "osx"} | ||
"ubuntu" {$sharpos = "linux"} | ||
} | ||
$sharpr = @("$sharpos-$arch") | ||
|
||
Set-Location ".." | ||
$callparam = "-r", $sharpr, "-c", "Release", "-o", ".\build", "--self-contained", "true" | ||
if (Test-Path -Path ".\build" -PathType Container) { | ||
Remove-Item ".\build" -Force -Recurse | ||
} | ||
New-Item ".\build" -ItemType "directory" | ||
|
||
&"dotnet" "publish" $callparam | ||
Copy-Item -Path @("build") -Destination ".." -Recurse -Exclude "*.pdb" -Force | ||
|
||
switch ($os) | ||
{ | ||
"windows" { | ||
|
||
} | ||
"macos" { | ||
|
||
} | ||
"ubuntu" { | ||
|
||
} | ||
} |