Skip to content

Commit

Permalink
20240323 update2
Browse files Browse the repository at this point in the history
  • Loading branch information
neko0xff committed Mar 23, 2024
1 parent 702ff86 commit 1f951d2
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 21 deletions.
16 changes: 8 additions & 8 deletions src/demo/viewapp_master/Dockerfile.env
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ RUN echo "${TZ}" > /etc/timezone
RUN ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime

# 安裝 Flutter 相依套件
RUN apt-get update
RUN apt-get install -y curl git wget unzip libgconf-2-4 gdb libstdc++6 libglu1-mesa fonts-droid-fallback lib32stdc++6 python3 sed \
RUN apt-get update && \
apt-get install -y curl git wget unzip libgconf-2-4 gdb libstdc++6 libglu1-mesa fonts-droid-fallback lib32stdc++6 python3 sed \
clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev && \
apt-get clean

Expand All @@ -19,17 +19,17 @@ RUN git clone https://github.com/flutter/flutter.git /usr/local/flutter
ENV PATH="${PATH}:/usr/local/flutter/bin:/usr/local/flutter/bin/cache/dart-sdk/bin"

# Run flutter doctor
RUN flutter doctor -v \
flutter channel stable \
flutter upgrade
RUN flutter channel stable
RUN flutter upgrade
RUN flutter doctor -v

# 建立 Web 應用程式
RUN mkdir /app
COPY . /app
WORKDIR /app
RUN flutter clean
RUN flutter pub get
RUN flutter build web
RUN flutter clean \
flutter pub get \
flutter build web

# 第二階段-建立提供實時運作的服務
FROM nginx:alpine
Expand Down
7 changes: 3 additions & 4 deletions src/demo/viewapp_master/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies:
sdk: flutter

dependency_overrides:
web: ^0.5.0
web: ^0.5.1

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
Expand All @@ -44,10 +44,9 @@ dependency_overrides:
http: ^1.1.0
path_provider: ^2.1.1
pdf: ^3.10.6
printing: ^5.11.1
printing: ^5.12.0
share_plus: ^7.2.1
syncfusion_flutter_pdfviewer: <=24.0.0-alpha.2
pdf_widget_wrapper: ^1.0.4
syncfusion_flutter_pdfviewer: <=24.0.0
url_launcher: ^6.2.1
flutter_launcher_icons: ^0.13.1

Expand Down
2 changes: 1 addition & 1 deletion src/demo/viewapp_user/Dockerfile.env
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ RUN git clone https://github.com/flutter/flutter.git /usr/local/flutter
ENV PATH="${PATH}:/usr/local/flutter/bin:/usr/local/flutter/bin/cache/dart-sdk/bin"

# Run flutter doctor
RUN flutter doctor -v
RUN flutter channel stable
RUN flutter upgrade
RUN flutter doctor -v

# 建立 Web 應用程式
RUN mkdir /app
Expand Down
10 changes: 5 additions & 5 deletions src/demo/viewapp_user/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -401,13 +401,13 @@ packages:
source: hosted
version: "3.10.8"
pdf_widget_wrapper:
dependency: "direct overridden"
dependency: transitive
description:
name: pdf_widget_wrapper
sha256: c930860d987213a3d58c7ec3b7ecf8085c3897f773e8dc23da9cae60a5d6d0f5
sha256: "9c3ca36e5000c9682d52bbdc486867ba7c5ee4403d1a5d6d03ed72157753377b"
url: "https://pub.dev"
source: hosted
version: "1.0.4"
version: "1.0.3"
petitparser:
dependency: transitive
description:
Expand Down Expand Up @@ -753,10 +753,10 @@ packages:
dependency: "direct overridden"
description:
name: web
sha256: "4188706108906f002b3a293509234588823c8c979dc83304e229ff400c996b05"
sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27"
url: "https://pub.dev"
source: hosted
version: "0.4.2"
version: "0.5.1"
win32:
dependency: transitive
description:
Expand Down
5 changes: 2 additions & 3 deletions src/demo/viewapp_user/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ dependencies:
sdk: flutter

dependency_overrides:
web: ^0.4.0
web: ^0.5.1

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
Expand All @@ -47,8 +47,7 @@ dependency_overrides:
pdf: ^3.10.6
printing: ^5.11.1
share_plus: ^7.2.1
syncfusion_flutter_pdfviewer: <=24.0.0-alpha.2
pdf_widget_wrapper: ^1.0.4
syncfusion_flutter_pdfviewer: <=24.0.0
url_launcher: ^6.2.1
flutter_launcher_icons: ^0.13.1

Expand Down

0 comments on commit 1f951d2

Please sign in to comment.