-
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.
Release 1.0.0
- Loading branch information
Showing
22 changed files
with
742 additions
and
3 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,33 @@ | ||
name: Debug | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
|
||
jobs: | ||
debug-build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [windows-latest, ubuntu-latest, macos-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: '7.0.x' | ||
|
||
- name: Build | ||
run: dotnet build src/TYM.csproj | ||
|
||
- name: Publish | ||
run: dotnet publish src/TYM.csproj /p:PublishProfile=src/Properties/PublishProfiles/${{ matrix.os }}.pubxml | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ matrix.os }} | ||
path: src/pub/ |
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,97 @@ | ||
name: Build and draft release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
|
||
draft-release: | ||
name: Draft new release | ||
runs-on: ubuntu-latest | ||
|
||
outputs: | ||
upload_url: ${{ steps.draft_release.outputs.upload_url }} | ||
|
||
steps: | ||
- name: Fetch source code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install XML tools | ||
run: sudo apt install xmlstarlet | ||
|
||
- name: Fetch version string | ||
run: echo "TAG=$(xmlstarlet select --template --value-of /Project/PropertyGroup/AssemblyVersion ./src/TYM.csproj)" >> $GITHUB_OUTPUT | ||
id: version | ||
|
||
- name: Draft release | ||
uses: actions/create-release@v1 | ||
id: draft_release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.G_TOKEN }} | ||
with: | ||
tag_name: ${{ steps.version.outputs.TAG }} | ||
release_name: TYM v${{ steps.version.outputs.TAG }} | ||
draft: true | ||
prerelease: false | ||
|
||
|
||
release-assets: | ||
name: Build and upload release assets | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [windows-latest, ubuntu-latest, macos-latest] | ||
|
||
steps: | ||
- name: Fetch source code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: '7.0.x' | ||
|
||
- name: Fetch version string (win) | ||
run: echo "TAG=$(./src/pub/TYM.exe --version | cut -c5- )" >> $GITHUB_OUTPUT | ||
id: version | ||
shell: bash | ||
if: matrix.os == 'windows-latest' | ||
|
||
- name: Fetch version string (*nix) | ||
run: echo "TAG=$(./src/pub/TYM --version | cut -c5- )" >> $GITHUB_OUTPUT | ||
id: version | ||
shell: bash | ||
if: | ||
matrix.os == 'macos-latest' | ||
matrix.os == 'ubuntu-latest' | ||
|
||
- name: Build | ||
run: dotnet build src/TYM.csproj | ||
|
||
- name: Publish | ||
run: dotnet publish src/TYM.csproj /p:PublishProfile=src/Properties/PublishProfiles/${{ matrix.os }}.pubxml | ||
|
||
- name: Upload release assets (win) | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.G_TOKEN }} | ||
with: | ||
upload_url: ${{ needs.create_release.outputs.upload_url }} | ||
asset_name: TYM-${{ steps.version.outputs.TAG }}-${{ matrix.os }} | ||
asset_path: ./src/pub/TYM.exe | ||
asset_content_type: application/octet-stream | ||
if: matrix.os == 'windows-latest' | ||
|
||
- name: Upload release assets (*nix) | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.G_TOKEN }} | ||
with: | ||
upload_url: ${{ needs.create_release.outputs.upload_url }} | ||
asset_name: TYM-${{ steps.version.outputs.TAG }}-${{ matrix.os }} | ||
asset_path: ./src/pub/TYM | ||
asset_content_type: application/octet-stream | ||
if: matrix.os == 'windows-latest' |
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,15 @@ | ||
# Changelog | ||
|
||
## General | ||
|
||
- [x] Codebase | ||
- [x] Create release workflow (submit release on merge to main branch) | ||
- [x] Support for downloading and rendering files directly from network | ||
|
||
## CLI Args | ||
|
||
- [x] Resampler list and selection | ||
- [x] Size option | ||
- [x] Starting point on screen | ||
- [x] Resize method (fit, stretch, crop) | ||
- [x] Full screen option |
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,2 +1,30 @@ | ||
# tym | ||
View your images in the terminal with true color | ||
# 🍉 TYM | ||
[![Debug build](https://github.com/Segilmez06/tym/actions/workflows/debug.yml/badge.svg)](https://github.com/Segilmez06/EFI-Runner/actions/workflows/debug.yml) | ||
[![Release build](https://github.com/Segilmez06/tym/actions/workflows/release.yml/badge.svg)](https://github.com/Segilmez06/EFI-Runner/actions/workflows/release.yml) | ||
|
||
TYM is a cross-platform tool that renders image files in your terminal. It uses VT100 escape codes to display 24-bit true color images. | ||
|
||
## Requirements | ||
- Unicode supported monospace font | ||
- VT100 compatible terminal emulator with true color support | ||
|
||
## Download | ||
Get the lastest version from [Releases](https://github.com/Segilmez06/tym/releases) page. You can also get a debug build from [Actions](https://github.com/Segilmez06/tym/actions/workflows/debug.yml) tab. | ||
|
||
## Installation | ||
Extract the zip file to a folder. Then add folder to your `PATH` variable. | ||
|
||
## Usage | ||
To be updated after a stable release, use `tym --help` instead. | ||
|
||
## Screenshots | ||
![Screenshot](screenshots/screenshot-1.png) | ||
|
||
## Building | ||
This tool is built on .Net 7 so it requires .Net SDK version >= 7 while building. | ||
|
||
### Optional | ||
For AOT binary compilation, check [official documentation](https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot#prerequisites) for dependencies. This packages are only required while publishing. Skip this step if you're going to use JIT compiled binary. | ||
|
||
## Contributing | ||
You can create pull requests and issues to help development. Also starring the repo will give me motivation. |
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,8 @@ | ||
# TODO | ||
|
||
## General | ||
|
||
- [ ] Optimize code and fragment info methods | ||
|
||
## CLI Args | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.