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

View File

@ -31,10 +31,10 @@ jobs:
- name: Rust Cache # cache the rust build artefacts - name: Rust Cache # cache the rust build artefacts
uses: Swatinem/rust-cache@v2 uses: Swatinem/rust-cache@v2
- name: Download and install Trunk binary - 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- run: wget -qO- https://github.com/thedodd/trunk/releases/latest/download/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-
- name: Build # build - name: Build # build
working-directory: crates/rpack working-directory: crates/rpack_egui
# "${GITHUB_REPOSITORY#*/}" evaluates into the name of the repository # "${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 . # 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 # 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 - name: Deploy
uses: JamesIves/github-pages-deploy-action@v4 uses: JamesIves/github-pages-deploy-action@v4
with: with:
folder: crates/rpack/dist folder: crates/rpack_egui/dist
# this option will not maintain any history of your previous pages deployment # 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 # set to false if you want all page build to be committed to your gh-pages branch history
single-commit: true single-commit: true

View File

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

2
.gitignore vendored
View File

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

View File

@ -2,7 +2,7 @@
resolver = "2" resolver = "2"
members = [ members = [
"crates/bevy_rpack", "crates/bevy_rpack",
"crates/rpack", "crates/rpack_egui",
"crates/rpack_cli", "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) # 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! 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. 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. 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) ![rpack_ebVVrMf3wm](https://github.com/user-attachments/assets/bb015348-3c1f-46be-9312-963b4f39f9c0)
## Bevy rPack ## 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. 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). 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 ## 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. Command line interface for generating tilemaps.
```sh ```sh

View File

@ -1,5 +1,5 @@
[package] [package]
name = "rpack" name = "rpack_egui"
version = "0.1.0" version = "0.1.0"
description = "GUI application for generating rpack atlases" description = "GUI application for generating rpack atlases"
authors = ["Piotr Siuszko <siuszko@zoho.com>"] 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( eframe::run_native(
"rPack", "rPack",
native_options, 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( .start(
canvas, canvas,
web_options, web_options,
Box::new(|cc| Ok(Box::new(rpack::Application::new(cc)))), Box::new(|cc| Ok(Box::new(rpack_egui::Application::new(cc)))),
) )
.await; .await;