Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
4f8183a
Add set_name in pokemon_info + tests
CalRL Nov 9, 2025
6ba5ecc
Use mon class instead of name for image finding
CalRL Nov 9, 2025
264d72f
add rust-embed, image
CalRL Nov 9, 2025
1c88bf9
add ImageCache
CalRL Nov 9, 2025
97906ae
edit render_pokemon_path to use images
CalRL Nov 9, 2025
a670c0f
addrender_texture function
CalRL Nov 9, 2025
35b1a32
Create cache in app::new
CalRL Nov 9, 2025
5c8ff2d
Use cache in singlescreen
CalRL Nov 9, 2025
b846cc0
cargo fmt entire repo
CalRL Nov 9, 2025
87ec71a
delete remnant tauri file
CalRL Nov 9, 2025
226e5a1
add generator
CalRL Nov 9, 2025
d85b8f5
flip args
CalRL Nov 12, 2025
e40891d
add correct_name method
CalRL Nov 12, 2025
d4459a9
make ImageContainer use class instead
CalRL Nov 12, 2025
2c84632
improve clarity
CalRL Nov 12, 2025
e9e5ecd
add classes and parse_classes
CalRL Nov 12, 2025
075123f
add error messages
CalRL Nov 12, 2025
babf8ac
use parsed_class
CalRL Nov 12, 2025
c3607b0
update Cargo
CalRL Nov 12, 2025
1a4c009
include version in app title
CalRL Nov 12, 2025
a8a3e12
Add Changelog
CalRL Nov 12, 2025
b661b23
remove images from gitignore
CalRL Nov 12, 2025
5d2c2c1
add images
CalRL Nov 12, 2025
f4950b7
log to terminal in debug mode only
CalRL Nov 12, 2025
e814ef1
Fix path
CalRL Nov 12, 2025
bfd7c9c
Fix generator on non-windows
CalRL Nov 12, 2025
6cc0ca0
add build.yml
CalRL Nov 12, 2025
9a93b0a
update build
CalRL Nov 12, 2025
e33b60c
format
CalRL Nov 12, 2025
5143a9c
cargo fmt
CalRL Nov 12, 2025
d1f5a0f
fix backup
CalRL Nov 12, 2025
7491f97
update build
CalRL Nov 12, 2025
bf02a38
Update Changelog.md
CalRL Nov 12, 2025
da542f5
Update build.yml
CalRL Nov 12, 2025
e3c168b
cargo fmt
CalRL Nov 12, 2025
3a77367
stop terminal on windows
CalRL Nov 12, 2025
06d4d55
remove old generator
CalRL Nov 12, 2025
882439e
fix casing
CalRL Nov 12, 2025
19fd21d
App changes
CalRL Nov 12, 2025
104ee30
add build.rs + change cargo files
CalRL Nov 12, 2025
1d93ccd
add settings screen
CalRL Nov 12, 2025
c91ee03
add get_log_path
CalRL Nov 12, 2025
fa021aa
add icon
CalRL Nov 12, 2025
bc2b291
add settings screen in app.rs
CalRL Nov 12, 2025
5085370
build.rs
CalRL Nov 12, 2025
b53aa3b
add icons
CalRL Nov 12, 2025
49b059e
workflows
CalRL Nov 13, 2025
0dfac46
Changelog
CalRL Nov 13, 2025
5d41c18
update release.yml
CalRL Nov 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 21 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Check

on:
workflow_dispatch:

jobs:
check-windows:
name: Cargo check
runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Cargo check
run: cargo check --release

- name: Cargo test
run: cargo test --release
73 changes: 73 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Build & Release PR > Master

on:
# Run checks on pull requests to main
pull_request:
branches:
- master

# Create release draft when code is merged into main
push:
branches:
- master

permissions:
contents: write

jobs:
check:
if: github.event_name == 'pull_request'
name: Cargo Check & Test (PR)
runs-on: windows-latest

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable

- name: Cargo check
run: cargo check --release

- name: Cargo test
run: cargo test --release

release:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
name: Build and Draft Release (Windows)
runs-on: windows-latest
needs: [] # can't "need" PR jobs, different event type

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable

- name: Build release binary
run: cargo build --release --target x86_64-pc-windows-msvc

- name: Prepare artifact folder
run: |
mkdir dist
mkdir dist\GammaEditor
mkdir dist\GammaEditor\logs
copy target\x86_64-pc-windows-msvc\release\gammaeditor.exe dist\GammaEditor\gammaeditor.exe

- name: Extract latest changelog section
id: changelog
shell: bash
run: |
CONTENT=$(awk '
/^## \[/ { if (NR>1) exit } NR>1 { print }
' CHANGELOG.md)

echo "changelog<<EOF" >> $GITHUB_OUTPUT
echo "$CONTENT" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT

- name: Create GitHub Release (draft)
uses: softprops/action-gh-release@v2
with:
draft: true
tag_name: "v${{ github.run_number }}"
name: "GammaEditor v${{ github.run_number }}"
body: ${{ steps.changelog.outputs.changelog }}
files: |
dist/GammaEditor/gammaeditor.exe
60 changes: 60 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Release

on:
workflow_dispatch:

permissions:
contents: write

jobs:
release-windows:
name: Build and Draft Release (Windows)
runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Build release binary
run: cargo build --release --target x86_64-pc-windows-msvc

- name: Prepare artifact folder
run: |
mkdir dist
mkdir dist\GammaEditor
mkdir dist\GammaEditor\logs
copy target\x86_64-pc-windows-msvc\release\gammaeditor.exe dist\GammaEditor\gammaeditor.exe

- name: Create ZIP archive
run: |
$zipName = "GammaEditor-${{ github.ref_name }}.zip"
Compress-Archive -Path "dist\GammaEditor" -DestinationPath "dist\$zipName"
Write-Host "Created archive: dist\$zipName"

- name: Extract changelog for this version
id: changelog
shell: bash
run: |
TAG_NAME="${GITHUB_REF#refs/tags/}"
echo "Tag: $TAG_NAME"
CONTENT=$(awk -v tag="## [${TAG_NAME#v}]" '
$0 == tag {flag=1; next}
/^## \[/ && flag {exit}
flag {print}
' CHANGELOG.md)

echo "changelog<<EOF" >> $GITHUB_OUTPUT
echo "$CONTENT" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT

- name: Create GitHub Release (draft)
uses: softprops/action-gh-release@v2
with:
draft: true
tag_name: ${{ github.ref_name }}
name: "GammaEditor ${{ github.ref_name }}"
body: ${{ steps.changelog.outputs.changelog }}
files: |
dist/GammaEditor-${{ github.ref_name }}.zip
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,4 @@ dist

# Generated by Cargo
# will have compiled files and executables
/target/
/images/
/target/
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Changelog

## [0.2.0]
- Added nickname editor
- Added icon in singlescreen
- Added shiny toggle
- Images are now loaded from cache on startup (rather than loaded at runtime)
- Stopped terminal from popping up on start.
- Added App icon
- Added App icon and version in titlebar
Loading