Actualiser .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
supercodeur 2025-05-29 12:16:21 +02:00
parent d530eb9d96
commit bac67b7d68

View File

@ -27,49 +27,6 @@ steps:
event: event:
- push - push
- name: build-linux
image: ghcr.io/cirruslabs/flutter:latest
volumes:
- name: ididit
path: /var/www/ididit
commands:
- apt-get update && apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev tar
- VERSION=$(grep '^version:' pubspec.yaml | awk '{print $2}')
- |
if [ -d linux ]; then
echo "Build Linux..."
flutter pub get
flutter build linux --release
TARGET="/var/www/ididit/$DRONE_REPO_OWNER/$DRONE_REPO_NAME/releases/$VERSION/linux"
mkdir -p "$TARGET"
tar czf "$TARGET/linux-$VERSION.tgz" -C build/linux/x64/release/bundle .
echo "Linux bundle published as $TARGET/linux-$VERSION.tgz"
else
echo "No linux/ directory, skipping."
fi
- name: build-android
image: ghcr.io/cirruslabs/flutter:latest
volumes:
- name: ididit
path: /var/www/ididit
environment:
ANDROID_HOME: /opt/android-sdk
commands:
- VERSION=$(grep '^version:' pubspec.yaml | awk '{print $2}')
- |
if [ -d android ]; then
echo "Build Android..."
flutter pub get
flutter build apk --release
TARGET="/var/www/ididit/$DRONE_REPO_OWNER/$DRONE_REPO_NAME/releases/$VERSION/android"
mkdir -p "$TARGET"
cp build/app/outputs/flutter-apk/app-release.apk "$TARGET/$DRONE_REPO_NAME-$VERSION.apk"
echo "Android build published to $TARGET"
else
echo "No android/ directory, skipping."
fi
- name: build-web - name: build-web
image: ghcr.io/cirruslabs/flutter:latest image: ghcr.io/cirruslabs/flutter:latest
volumes: volumes: