Skip to content
Snippets Groups Projects
Commit fa927257 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Update pixelcannon recipe

parent b769485c
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
set -e
for recipe in `ls -1 recipes`
do
./cook.sh $recipe $*
......
......@@ -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
;;
......
./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"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment