move src/build to build

This commit is contained in:
yuni 2024-05-12 23:15:17 +02:00
parent c3ac62780a
commit d03ca40cae
13 changed files with 8 additions and 6 deletions

View file

@ -12,6 +12,6 @@ fn main() {
let target = std::env::var("TARGET").unwrap(); let target = std::env::var("TARGET").unwrap();
if target.contains("windows") { if target.contains("windows") {
println!("cargo:warning=Embedding Windows Icon"); println!("cargo:warning=Embedding Windows Icon");
embed_resource::compile("src/build/windows/icon.rc"); embed_resource::compile("build/windows/icon.rc");
} }
} }

View file

@ -1,3 +1,5 @@
This directory contains scripts and data files for building outfly for various operating systems.
# Dev Features # Dev Features
For development, it's recommended to use `--features dev`: 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 # 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. 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 ## 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] cargo build --release --no-default-features --features release_[linux|windows] [--target=$YOUR_TARGET]

View file

@ -13,5 +13,5 @@
rootdir="${1:-}" rootdir="${1:-}"
install -Dm755 "target/release/outfly" "$rootdir/usr/bin/outfly" install -Dm755 "target/release/outfly" "$rootdir/usr/bin/outfly"
install -Dm644 "src/build/linux/outfly.png" "$rootdir/usr/share/pixmaps/outfly.png" install -Dm644 "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.desktop" "$rootdir/usr/share/applications/outfly.desktop"

View file

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View file

@ -10,7 +10,7 @@
# + ▀████████████████████████████████████████████████████▀ # + ▀████████████████████████████████████████████████████▀
# #
# A script to package release binaries + README.md into zip files. # 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 # Options: -b: cross-compile targets before packing
set -e set -e

View file

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB