d4t_formulas/release.sh

36 lines
812 B
Bash
Raw Permalink Normal View History

2026-05-12 18:00:45 +00:00
#!/bin/bash -x
2026-05-12 16:03:15 +00:00
echo "Ejecutando $0 en directorio $(pwd)"
2026-05-12 14:15:27 +00:00
2026-05-12 15:55:28 +00:00
build_release_files(){
2026-05-13 09:50:35 +00:00
(
docker ps
make build-container
2026-05-13 09:54:03 +00:00
pwd
ls -la
2026-05-13 10:10:12 +00:00
./flutterw --exec sh -c \"pwd; ls -la\"
2026-05-13 09:50:35 +00:00
)
2026-05-12 16:44:17 +00:00
make build-container build-builders test build-android-release-container build-linux-release-container build-web-release-container
2026-05-12 15:55:28 +00:00
2026-05-12 18:00:45 +00:00
echo " ----> Listando archivos en ./build"
2026-05-12 17:48:32 +00:00
find build/
2026-05-12 18:00:45 +00:00
echo " <----"
2026-05-12 17:02:05 +00:00
pushd build/web && zip -r ../../webapp.zip * && popd
pushd build/linux/x64/release/bundle && zip -r ../../../../../linux-bin.zip * && popd
2026-05-12 18:00:45 +00:00
}
get_release_files(){
2026-05-12 16:44:17 +00:00
echo ./build/app/outputs/flutter-apk/app-release.apk linux-bin.zip webapp.zip
2026-05-12 15:55:28 +00:00
}
main(){
TAG=${GITHUB_REF#refs/tags/}
2026-05-12 18:15:04 +00:00
VERSION=${TAG#version-}
2026-05-12 15:55:28 +00:00
build_release_files
2026-05-12 16:38:59 +00:00
FILES="$(get_release_files)"
2026-05-13 09:10:43 +00:00
# gh release create $TAG $FILES
2026-05-12 15:55:28 +00:00
}
2026-05-12 17:49:38 +00:00
main