我正在尝试构建一个 snap,但中文字符被渲染成方块。有人知道如何解决这个问题吗?
这是我的snapcraft.yaml
:
name: cloudmusic
version: 1.4.3+snap2
summary: Cloud Music
description:
Search, listen and download your favorite music
apps:
cloudmusic:
command: cloudmusic
plugs: [unity7,opengl,home,network,network-bind,pulseaudio]
parts:
cloudmusic:
plugin: qmake
qt-version: qt5
options: [PREFIX=/usr]
project-files: [CloudMusic.pro]
source: src/
build-packages:
- build-essential
- gettext
- intltool
- suru-icon-theme
- qml-module-qt-labs-settings
- qml-module-qtquick-localstorage
- qml-module-qtgraphicaleffects
- qtdeclarative5-ubuntu-download-manager0.1
- qtdeclarative5-qtmultimedia-plugin
- qtdeclarative5-ubuntu-content1
- qt5-default
- qtbase5-dev
- qtdeclarative5-dev
- qtdeclarative5-dev-tools
- qtdeclarative5-ubuntu-ui-toolkit-plugin
- xvfb
stage-packages:
- ubuntu-sdk-libs
- qtubuntu-desktop
- qml-module-qtsysteminfo
- fonts-freefont-ttf
snap:
- -usr/share/doc
- -usr/include
environment:
plugin: copy
files:
cloudmusic.wrapper: bin/cloudmusic
snappy-qt5.conf: etc/xdg/qtchooser/snappy-qt5.conf
上述内容可以在以下网址snapcraft.yaml
找到:http://paste.ubuntu.com/19511184/。