diff --git a/Dockerfile b/Dockerfile index f7b6bcb..a5f0702 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ FROM git.zontreck.com/ariascreations/conanservermanager:builddeps AS BUILDER WORKDIR /app COPY . . +ENV DOCKER 1 WORKDIR /app RUN PATH=$PATH:/flutter/bin /bin/bash /app/compile.sh diff --git a/compile.sh b/compile.sh index 4222198..f3709a0 100755 --- a/compile.sh +++ b/compile.sh @@ -5,7 +5,11 @@ then mkdir out fi -flutter build linux +if [[ -z "${DOCKER}" ]] +then + flutter build linux +fi + dart compile exe -o out/server bin/server.dart rsync -a --progress -h --delete build/linux/x64/release/bundle/ out/client/ diff --git a/pubspec.yaml b/pubspec.yaml index ec744fa..609b43c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.1.0+41 +version: 1.1.0+42 environment: sdk: '>=3.1.4 <4.0.0'