From a31eb7a3cc4eb7a3fbb18592c2c0e4018af0212f Mon Sep 17 00:00:00 2001 From: Piotr Siuszko Date: Sat, 23 Dec 2023 23:14:09 +0100 Subject: [PATCH] Conf updates --- .github/workflows/rust.yml | 44 ++++++++++++++++++++++++++++++++++++++ CHANGELOG.md | 5 +++++ Cargo.toml | 16 +++++++++++++- LICENCE.md | 21 ++++++++++++++++++ README.md | 9 ++++++-- 5 files changed, 92 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/rust.yml create mode 100644 CHANGELOG.md create mode 100644 LICENCE.md diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..721ae71 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,44 @@ +name: build + +on: + workflow_dispatch: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +env: + CARGO_TERM_COLOR: always + +jobs: + check: + name: Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: "[Ubuntu] install dependencies" + run: sudo apt update && sudo apt install libgtk-3-dev + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - uses: actions-rs/cargo@v1 + with: + command: check + args: --all-features + fmt: + name: Rustfmt + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + components: rustfmt + - uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..9427c25 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## [0.1.0] + +Initial version. \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 54a684c..acf7af9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,8 +2,22 @@ name = "lwa_unity_unpack" version = "0.1.0" edition = "2021" +repository = "https://github.com/Leinnan/lwa_unity_unpack" +homepage = "https://github.com/Leinnan/lwa_unity_unpack" +readme = "README.md" +license = "MIT" +keywords = ["cli", "unity", "gamedev", "game-development"] +categories = ["command-line-utilities", "development-tools"] +description = "Simple CLI tool for unpacking the unitypackages." +exclude = ["/.github"] -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[profile.release] +opt-level = 'z' +panic = 'abort' +lto = true + +[profile.dev.package."*"] +opt-level = 2 [dependencies] clap = { version = "4.4", features = ["derive"] } diff --git a/LICENCE.md b/LICENCE.md new file mode 100644 index 0000000..af4ee5f --- /dev/null +++ b/LICENCE.md @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 MevLyshkin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 6e626dd..853edf3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,11 @@ -# lwa_unity_unpack +# lwa_unity_unpack [![Build Status](https://github.com/Leinnan/lwa_unity_unpack/workflows/CI/badge.svg)](https://github.com/Leinnan/lwa_unity_unpack/actions?workflow=CI) +[![license](https://img.shields.io/crates/l/lwa_unity_unpack)](https://github.com/Leinnan/lwa_unity_unpack#license) +[![crates.io](https://img.shields.io/crates/v/lwa_unity_unpack.svg)](https://crates.io/crates/lwa_unity_unpack) +[![crates.io](https://img.shields.io/crates/d/lwa_unity_unpack.svg)](https://crates.io/crates/lwa_unity_unpack) -Simple CLI tool for unpacking the unitypackages. Also allows auto convert of the FBX files to GLTF during unpacking. +Simple CLI tool for unpacking the unitypackages. + +Also allows auto convert of the FBX files to GLTF during unpacking. For that download the tool from [here](https://github.com/godotengine/FBX2glTF) and pass the path to executable file as `--fbx-to-gltf` argument value. ```bash Program for unpacking unitypackages files