Skip to content

Commit f2eb3e0

Browse files
committed
For English, fix locale, remove CAJViewer, set edmax to English
1 parent d17e515 commit f2eb3e0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/workflow.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,7 @@ wget https://github.com/tiny-computer/third-party-archives/releases/download/arc
403403
EOF
404404
rm /tmp/wps.deb"""},
405405
{"name":"Uninstall WPS", "command":"sudo apt autoremove --purge -y wps-office"},
406-
{"name":"Install CAJViewer", "command":"wget https://download.cnki.net/net.cnki.cajviewer_1.3.20-1_arm64.deb -O /tmp/caj.deb && sudo apt update && sudo apt install -y /tmp/caj.deb && bash /home/tiny/.local/share/tiny/caj/postinst; rm /tmp/caj.deb"},
407-
{"name":"Uninstall CAJViewer", "command":"sudo apt autoremove --purge -y net.cnki.cajviewer && bash /home/tiny/.local/share/tiny/caj/postrm"},
408-
{"name":"Install EdrawMax", "command":"wget https://cc-download.wondershare.cc/business/prd/edrawmax_13.1.0-1_arm64_binner.deb -O /tmp/edraw.deb && sudo apt update && sudo apt install -y /tmp/edraw.deb && bash /home/tiny/.local/share/tiny/edraw/postinst; rm /tmp/edraw.deb"},
406+
{"name":"Install EdrawMax", "command":"""wget https://cc-download.wondershare.cc/business/prd/edrawmax_13.1.0-1_arm64_binner.deb -O /tmp/edraw.deb && sudo apt update && sudo apt install -y /tmp/edraw.deb && bash /home/tiny/.local/share/tiny/edraw/postinst && sudo sed -i 's/<Language V="cn"\\/>/<Language V="en"\\/>/g' /opt/apps/edrawmax/config/settings.xml; rm /tmp/edraw.deb"""},
409407
{"name":"Uninstall EdrawMax", "command":"sudo apt autoremove --purge -y edrawmax libldap-2.4-2"},
410408
{"name":"Enable Recycle Bin", "command":"sudo apt update && sudo apt install -y gvfs && echo 'Restart the app to use Recycle Bin.'"},
411409
{"name":"Clean Package Cache", "command":"sudo apt clean"},
@@ -687,7 +685,7 @@ ${Localizations.localeOf(G.homePageStateContext).languageCode == 'zh' ? "" : "ec
687685
G.postCommand = """sed -i -E "s@(geometry)=.*@\\1=${w}x${h}@" /etc/tigervnc/vncserver-config-tmoe
688686
sed -i -E "s@^(VNC_RESOLUTION)=.*@\\1=${w}x${h}@" \$(command -v startvnc)""";
689687
if (Localizations.localeOf(G.homePageStateContext).languageCode != 'zh') {
690-
G.postCommand += "\nlocale-gen";
688+
G.postCommand += "\nlocaledef -c -i en_US -f UTF-8 en_US.UTF-8";
691689
// For English users, assume they need to enable terminal write
692690
await G.prefs.setBool("isTerminalWriteEnabled", true);
693691
await G.prefs.setBool("isTerminalCommandsEnabled", true);

0 commit comments

Comments
 (0)