diff --git a/Cargo.toml b/Cargo.toml index ba888ba..62c4939 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ categories = ["game", "aerospace", "simulation"] keywords = ["game", "space", "3d"] license = "GPL-3.0-only" rust-version = "1.76.0" -build = "build/build.rs" +build = "src/build/build.rs" [dependencies] regex = "1" diff --git a/build/build.rs b/src/build/build.rs similarity index 95% rename from build/build.rs rename to src/build/build.rs index b7d8d5f..8258cd9 100644 --- a/build/build.rs +++ b/src/build/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("build/windows/icon.rc"); + embed_resource::compile("src/build/windows/icon.rc"); } } diff --git a/build/generate_starchart.py b/src/build/generate_starchart.py similarity index 100% rename from build/generate_starchart.py rename to src/build/generate_starchart.py diff --git a/build/linux/install.sh b/src/build/linux/install.sh similarity index 87% rename from build/linux/install.sh rename to src/build/linux/install.sh index c83a9f6..f882b92 100755 --- a/build/linux/install.sh +++ b/src/build/linux/install.sh @@ -13,5 +13,5 @@ rootdir="${1:-}" install -Dm755 "target/release/outfly" "$rootdir/usr/bin/outfly" -install -Dm644 "build/linux/outfly.png" "$rootdir/usr/share/pixmaps/outfly.png" -install -Dm644 "build/linux/outfly.desktop" "$rootdir/usr/share/applications/outfly.desktop" +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" diff --git a/build/linux/outfly.desktop b/src/build/linux/outfly.desktop similarity index 100% rename from build/linux/outfly.desktop rename to src/build/linux/outfly.desktop diff --git a/build/linux/outfly.png b/src/build/linux/outfly.png similarity index 100% rename from build/linux/outfly.png rename to src/build/linux/outfly.png diff --git a/build/pack.sh b/src/build/pack.sh similarity index 98% rename from build/pack.sh rename to src/build/pack.sh index 2083137..a041043 100755 --- a/build/pack.sh +++ b/src/build/pack.sh @@ -10,7 +10,7 @@ # + ▀████████████████████████████████████████████████████▀ # # A script to package release binaries + README.md into zip files. -# Usage: cd outfly; build/pack.sh [-b] +# Usage: cd outfly; src/build/pack.sh [-b] # Options: -b: cross-compile targets before packing set -e diff --git a/build/windows/icon.rc b/src/build/windows/icon.rc similarity index 100% rename from build/windows/icon.rc rename to src/build/windows/icon.rc diff --git a/build/windows/outfly.ico b/src/build/windows/outfly.ico similarity index 100% rename from build/windows/outfly.ico rename to src/build/windows/outfly.ico