mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-27 07:14:18 +08:00
Update pixelcannon recipe
This commit is contained in:
parent
b769485cee
commit
fa92725782
4
all.sh
4
all.sh
@ -1,3 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
for recipe in `ls -1 recipes`
|
||||
do
|
||||
./cook.sh $recipe $*
|
||||
|
||||
23
cook.sh
23
cook.sh
@ -61,17 +61,18 @@ function op {
|
||||
if [ "$(type -t recipe_stage)" = "function" ]
|
||||
then
|
||||
recipe_stage ../stage
|
||||
fi
|
||||
#TODO xargo install --root "../stage" $CARGOFLAGS
|
||||
bins="$(find target/x86_64-unknown-redox/release/ -maxdepth 1 -type f ! -name '*.*')"
|
||||
if [ -n "$bins" ]
|
||||
then
|
||||
mkdir -p ../stage/bin
|
||||
for bin in $bins
|
||||
do
|
||||
cp -v "$bin" "../stage/bin/$(basename $bin)"
|
||||
strip -v "../stage/bin/$(basename $bin)"
|
||||
done
|
||||
else
|
||||
#TODO xargo install --root "../stage" $CARGOFLAGS
|
||||
bins="$(find target/$TARGET/release/ -maxdepth 1 -type f ! -name '*.*')"
|
||||
if [ -n "$bins" ]
|
||||
then
|
||||
mkdir -p ../stage/bin
|
||||
for bin in $bins
|
||||
do
|
||||
cp -v "$bin" "../stage/bin/$(basename $bin)"
|
||||
strip -v "../stage/bin/$(basename $bin)"
|
||||
done
|
||||
fi
|
||||
fi
|
||||
popd > /dev/null
|
||||
;;
|
||||
|
||||
@ -1 +1,7 @@
|
||||
./all.sh distclean dist publish
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
./all.sh distclean
|
||||
./all.sh dist
|
||||
./all.sh publish
|
||||
|
||||
@ -5,4 +5,6 @@ function recipe_stage {
|
||||
cp -Rv assets "$1/apps/pixelcannon"
|
||||
mkdir -pv "$1/ui/apps"
|
||||
cp -v manifest "$1/ui/apps/pixelcannon"
|
||||
mkdir -pv "$1/ui/bin"
|
||||
cp -v "target/$TARGET/release/pixelcannon" "$1/ui/bin"
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user