Crate rename

This commit is contained in:
Piotr Siuszko 2025-01-14 14:22:49 +01:00
parent 050908cb99
commit bd04decb7a
27 changed files with 25 additions and 16 deletions

View File

@ -31,21 +31,21 @@ jobs:
- name: Rust Cache # cache the rust build artefacts
uses: Swatinem/rust-cache@v2
- name: Download and install Trunk binary
working-directory: crates/rpack
working-directory: crates/rpack_egui
run: wget -qO- https://github.com/thedodd/trunk/releases/latest/download/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-
- name: Update file
working-directory: crates/rpack
working-directory: crates/rpack_egui
run: sed -i '15d' index.html
- name: Build
working-directory: crates/rpack
working-directory: crates/rpack_egui
run: ./trunk build --release
- name: Update result file
working-directory: crates/rpack
working-directory: crates/rpack_egui
run: sed -i 's|/rpack|./rpack|g' dist/index.html
- name: Itch.io - Publish
uses: KikimoraGames/itch-publish@v0.0.3
with:
gameData: ./crates/rpack/dist
gameData: ./crates/rpack_egui/dist
itchUsername: mevlyshkin
itchGameId: rpack
buildChannel: wasm

View File

@ -31,10 +31,10 @@ jobs:
- name: Rust Cache # cache the rust build artefacts
uses: Swatinem/rust-cache@v2
- name: Download and install Trunk binary
working-directory: crates/rpack
working-directory: crates/rpack_egui
run: wget -qO- https://github.com/thedodd/trunk/releases/latest/download/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-
- name: Build # build
working-directory: crates/rpack
working-directory: crates/rpack_egui
# "${GITHUB_REPOSITORY#*/}" evaluates into the name of the repository
# using --public-url something will allow trunk to modify all the href paths like from favicon.ico to repo_name/favicon.ico .
# this is necessary for github pages where the site is deployed to username.github.io/repo_name and all files must be requested
@ -44,7 +44,7 @@ jobs:
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: crates/rpack/dist
folder: crates/rpack_egui/dist
# this option will not maintain any history of your previous pages deployment
# set to false if you want all page build to be committed to your gh-pages branch history
single-commit: true

View File

@ -68,8 +68,8 @@ jobs:
target: wasm32-unknown-unknown
override: true
- name: Download and install Trunk binary
working-directory: crates/rpack
working-directory: crates/rpack_egui
run: wget -qO- https://github.com/thedodd/trunk/releases/latest/download/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-
- name: Build
working-directory: crates/rpack
working-directory: crates/rpack_egui
run: ./trunk build

2
.gitignore vendored
View File

@ -1,6 +1,6 @@
/target
/crates/*/target
/crates/rpack/dist
/crates/rpack_egui/dist
/dist
skyline-packer-output.png
result.png

View File

@ -2,7 +2,7 @@
resolver = "2"
members = [
"crates/bevy_rpack",
"crates/rpack",
"crates/rpack_egui",
"crates/rpack_cli",
]

View File

@ -1,5 +1,8 @@
# rpack [![Build Status](https://github.com/Leinnan/rpack/workflows/CI/badge.svg)](https://github.com/Leinnan/rpack/actions?workflow=CI)
[![Crates.io](https://img.shields.io/crates/v/rpack_egui)](https://crates.io/crates/rpack_egui)
[![Documentation](https://docs.rs/rpack_egui/badge.svg)](https://docs.rs/rpack_egui)
Create tilemaps in seconds!
This repository contains few projects that together make a fully functional solution for generating tilemaps alongside integration to the Bevy game engine.
@ -13,12 +16,15 @@ To open it in browser click one of the icons below:
A both desktop and web frontend for generating tilemaps. Just drag and drop images into the program and generate tilemaps.
Source code is available in `crates/rpack` directory of the repo.
Source code is available in `crates/rpack_egui` directory of the repo.
![rpack_ebVVrMf3wm](https://github.com/user-attachments/assets/bb015348-3c1f-46be-9312-963b4f39f9c0)
## Bevy rPack
[![Crates.io](https://img.shields.io/crates/v/bevy_rpack)](https://crates.io/crates/bevy_rpack)
[![Documentation](https://docs.rs/bevy_rpack/badge.svg)](https://docs.rs/bevy_rpack)
A Bevy plugin with support for the `rpack.json` atlases.
More info available at [crates/bevy_rpack](https://github.com/Leinnan/rpack/tree/master/crates/bevy_rpack).
@ -27,6 +33,9 @@ Repository contains example how to use plugin in Bevy.
## rPack CLI
[![Crates.io](https://img.shields.io/crates/v/rpack_cli)](https://crates.io/crates/rpack_cli)
[![Documentation](https://docs.rs/rpack_cli/badge.svg)](https://docs.rs/rpack_cli)
Command line interface for generating tilemaps.
```sh

View File

@ -1,5 +1,5 @@
[package]
name = "rpack"
name = "rpack_egui"
version = "0.1.0"
description = "GUI application for generating rpack atlases"
authors = ["Piotr Siuszko <siuszko@zoho.com>"]

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 314 KiB

After

Width:  |  Height:  |  Size: 314 KiB

View File

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 47 KiB

View File

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 128 KiB

View File

@ -15,7 +15,7 @@ fn main() -> eframe::Result<()> {
eframe::run_native(
"rPack",
native_options,
Box::new(|cc| Ok(Box::new(rpack::Application::new(cc)))),
Box::new(|cc| Ok(Box::new(rpack_egui::Application::new(cc)))),
)
}
@ -40,7 +40,7 @@ fn main() {
.start(
canvas,
web_options,
Box::new(|cc| Ok(Box::new(rpack::Application::new(cc)))),
Box::new(|cc| Ok(Box::new(rpack_egui::Application::new(cc)))),
)
.await;