Skip to content

Commit

Permalink
Fix snap build
Browse files Browse the repository at this point in the history
  • Loading branch information
sukso96100 committed Jul 24, 2024
1 parent fade05a commit 74d11ad
Showing 1 changed file with 15 additions and 22 deletions.
37 changes: 15 additions & 22 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,42 +163,35 @@ parts:
cp -r $CRAFT_PART_SRC $CRAFT_PART_INSTALL/usr/libexec/flutter
ln -s $CRAFT_PART_INSTALL/usr/libexec/flutter/bin/flutter $CRAFT_PART_INSTALL/usr/bin/flutter
$CRAFT_PART_INSTALL/usr/bin/flutter doctor
$CRAFT_PART_INSTALL/usr/bin/flutter precache
build-packages:
- curl
- git
- unzip
- xz-utils
- zip
- libglu1-mesa
- clang
- cmake
- ninja-build
- pkg-config
- libgtk-3-dev
- liblzma-dev
- libstdc++-12-dev

ubuntu-kr-qr-kiosk:
after:
- flutter-git
source: .
source-type: git
plugin: nil
# plugin: flutter
# flutter-target: lib/main.dart # The main entry-point file of the application
# build-snaps:
# - flutter/latest/stable
# build-environment:
# - C_INCLUDE_PATH: /usr/bin/flutter/current/usr/include
# - LD_LIBRARY_PATH: ${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}/usr/bin/flutter/current/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
# - PKG_CONFIG_PATH: ${PKG_CONFIG_PATH:+$PKG_CONFIG_PATH:}/usr/bin/flutter/current/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/pkgconfig
# - XDG_DATA_DIRS: /usr/bin/flutter/current/usr/share${XDG_DATA_DIRS:+:$XDG_DATA_DIRS}
build-packages:
- libsqlite3-dev
- libsqlite3-0
- fonts-noto-cjk
- libnss3
- libwebkit2gtk-4.0-37
- libwebkit2gtk-4.0-dev
- curl
- git
- unzip
- xz-utils
- zip
- libglu1-mesa
- clang
- make
- ninja-build
- pkg-config
- libgtk-3-dev
- liblzma-dev
- libstdc++-12-dev
stage-packages:
- libgtk-3-0
- libgl1
Expand Down

0 comments on commit 74d11ad

Please sign in to comment.