This commit is contained in:
parent
1b229f681e
commit
a863393b67
2 changed files with 11 additions and 2 deletions
11
flutterw
11
flutterw
|
|
@ -111,8 +111,17 @@ docker_options(){
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tty_options(){
|
||||||
|
if sh -c ": >/dev/tty" >/dev/null 2>/dev/null; then
|
||||||
|
echo "-it"
|
||||||
|
else
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
exec_in_container(){
|
exec_in_container(){
|
||||||
local SPIOPTIONS=$(spi_options)
|
local SPIOPTIONS=$(spi_options)
|
||||||
|
local TTYOPTIONS=$(tty_options)
|
||||||
local GRAPHICOPTIONS=$(graphic_options)
|
local GRAPHICOPTIONS=$(graphic_options)
|
||||||
local DOCKEROPTIONS=$(docker_options)
|
local DOCKEROPTIONS=$(docker_options)
|
||||||
mkdir -p $BUILDCACHE/root-home/.config
|
mkdir -p $BUILDCACHE/root-home/.config
|
||||||
|
|
@ -120,7 +129,7 @@ exec_in_container(){
|
||||||
mkdir -p $BUILDCACHE/sdks-flutter-bin-cache
|
mkdir -p $BUILDCACHE/sdks-flutter-bin-cache
|
||||||
|
|
||||||
$DOCKER run \
|
$DOCKER run \
|
||||||
-it \
|
$TTYOPTIONS \
|
||||||
--init \
|
--init \
|
||||||
--rm \
|
--rm \
|
||||||
-v $BUILDCACHE/root-home/.config:/root/.config \
|
-v $BUILDCACHE/root-home/.config:/root/.config \
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
echo "Ejecutando $0 en directorio $(pwd)"
|
echo "Ejecutando $0 en directorio $(pwd)"
|
||||||
|
|
||||||
build_release_files(){
|
build_release_files(){
|
||||||
docker ps
|
docker ps
|
||||||
./flutterw --exec ls -la
|
./flutterw --exec ls -la
|
||||||
make build-container build-builders test build-android-release-container build-linux-release-container build-web-release-container
|
make build-container build-builders test build-android-release-container build-linux-release-container build-web-release-container
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue