move src/build to build
This commit is contained in:
parent
c3ac62780a
commit
d03ca40cae
2
build.rs
2
build.rs
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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]
|
|
@ -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"
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
@ -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
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Loading…
Reference in a new issue