diff --git a/build.rs b/build.rs index 8258cd9..b7d8d5f 100644 --- a/build.rs +++ b/build.rs @@ -12,6 +12,6 @@ fn main() { let target = std::env::var("TARGET").unwrap(); if target.contains("windows") { println!("cargo:warning=Embedding Windows Icon"); - embed_resource::compile("src/build/windows/icon.rc"); + embed_resource::compile("build/windows/icon.rc"); } } diff --git a/HACKING.md b/build/README.md similarity index 91% rename from HACKING.md rename to build/README.md index 56fbb09..287d9f9 100644 --- a/HACKING.md +++ b/build/README.md @@ -1,3 +1,5 @@ +This directory contains scripts and data files for building outfly for various operating systems. + # Dev Features For development, it's recommended to use `--features dev`: @@ -18,7 +20,7 @@ This enables the following, but ONLY if you run it with `cargo run`: # pack.sh -The [pack.sh](src/build/pack.sh) script is used by the developer team to compile and pack release binaries into official packages. +The [pack.sh](build/pack.sh) script is used by the developer team to compile and pack release binaries into official packages. It could serve as a starting point for package maintainers or tinkerers. @@ -88,7 +90,7 @@ python -m http.server -d wasm ## Building release versions optimized for packaging -To build release versions optimized for final deployment, build with the following features: (see also [pack.sh](https://codeberg.org/hut/outfly/src/branch/main/src/build/pack.sh)) +To build release versions optimized for final deployment, build with the following features: (see also [pack.sh](https://codeberg.org/hut/outfly/src/branch/main/build/pack.sh)) ``` cargo build --release --no-default-features --features release_[linux|windows] [--target=$YOUR_TARGET] diff --git a/src/build/generate_starchart.py b/build/generate_starchart.py similarity index 100% rename from src/build/generate_starchart.py rename to build/generate_starchart.py diff --git a/src/build/linux/install.sh b/build/linux/install.sh similarity index 87% rename from src/build/linux/install.sh rename to build/linux/install.sh index f882b92..c83a9f6 100755 --- a/src/build/linux/install.sh +++ b/build/linux/install.sh @@ -13,5 +13,5 @@ rootdir="${1:-}" install -Dm755 "target/release/outfly" "$rootdir/usr/bin/outfly" -install -Dm644 "src/build/linux/outfly.png" "$rootdir/usr/share/pixmaps/outfly.png" -install -Dm644 "src/build/linux/outfly.desktop" "$rootdir/usr/share/applications/outfly.desktop" +install -Dm644 "build/linux/outfly.png" "$rootdir/usr/share/pixmaps/outfly.png" +install -Dm644 "build/linux/outfly.desktop" "$rootdir/usr/share/applications/outfly.desktop" diff --git a/src/build/linux/outfly.desktop b/build/linux/outfly.desktop similarity index 100% rename from src/build/linux/outfly.desktop rename to build/linux/outfly.desktop diff --git a/src/build/linux/outfly.png b/build/linux/outfly.png similarity index 100% rename from src/build/linux/outfly.png rename to build/linux/outfly.png diff --git a/src/build/nix/README.md b/build/nix/README.md similarity index 100% rename from src/build/nix/README.md rename to build/nix/README.md diff --git a/src/build/nix/default.nix b/build/nix/default.nix similarity index 100% rename from src/build/nix/default.nix rename to build/nix/default.nix diff --git a/src/build/nix/flake.lock b/build/nix/flake.lock similarity index 100% rename from src/build/nix/flake.lock rename to build/nix/flake.lock diff --git a/src/build/nix/flake.nix b/build/nix/flake.nix similarity index 100% rename from src/build/nix/flake.nix rename to build/nix/flake.nix diff --git a/src/build/pack.sh b/build/pack.sh similarity index 98% rename from src/build/pack.sh rename to build/pack.sh index 96fe5f7..6b8a6c6 100755 --- a/src/build/pack.sh +++ b/build/pack.sh @@ -10,7 +10,7 @@ # + ▀████████████████████████████████████████████████████▀ # # A script to package release binaries + README.md into zip files. -# Usage: cd outfly; src/build/pack.sh [-b] +# Usage: cd outfly; build/pack.sh [-b] # Options: -b: cross-compile targets before packing set -e diff --git a/src/build/windows/icon.rc b/build/windows/icon.rc similarity index 100% rename from src/build/windows/icon.rc rename to build/windows/icon.rc diff --git a/src/build/windows/outfly.ico b/build/windows/outfly.ico similarity index 100% rename from src/build/windows/outfly.ico rename to build/windows/outfly.ico