下载资源
项目 | 下载链接 | 注释 |
---|---|---|
主程序 | Castle / OpenRA_rasc 下载 AppImage→发行版 | 汉化仓库-AppImage程序 |
资源包 | ra-quickinstall.zip | 官网资源包-快速安装 |
图标 | icons.zip | 快捷方式的图标 |
# 下载这个三个包,并解压出来
# nangy @ nangy-deepin in ~/Downloads [15:21:59]
$ ll
总用量 55M
drwxrwxrwx 3 nangy nangy 4.0K 10月 30 12:43 icons
-rwxrwxrwx 1 nangy nangy 101K 10月 30 15:10 icons.zip
drwxr-xr-x 3 nangy nangy 4.0K 10月 30 13:35 ra
-rwxrwxrwx 1 nangy nangy 13M 10月 30 13:35 ra-quickinstall.zip
-rwxrwxrwx 1 nangy nangy 43M 10月 29 20:08 RedAlertSimplifiedChinese-rasc_20200517-x86_64.AppImage
解压安装
- 安装主程序
# 创建程序目录
# nangy @ nangy-deepin in /opt [15:25:26]
$ sudo mkdir -p games/openra/openra-ra
# 复制主程序
# nangy @ nangy-deepin in /opt/games/openra/openra-ra [15:26:40]
$ sudo cp ~/Downloads/RedAlertSimplifiedChinese-rasc_20200517-x86_64.AppImage ./
# 给上级目录授权,方便普通用户可执行
# nangy @ nangy-deepin in /opt/games/openra/openra-ra [15:29:20]
$ sudo chmod 777 -R ../openra-ra/
# 执行一次(肯定不成功),只是为了生成资源包路径 ~/.config/openra/
# nangy @ nangy-deepin in /opt/games/openra/openra-ra [15:29:20]
$ ./RedAlertSimplifiedChinese-rasc_20200517-x86_64.AppImage
#
- 安装资源包
# 进入 ~/.config/openra/
# nangy @ nangy-deepin in /opt/games/openra/openra-ra [15:31:10]
$ cd ~/.config/openra
# nangy @ nangy-deepin in ~/.config/openra [15:31:45]
$ ll
总用量 20K
drwxr-xr-x 2 nangy nangy 4.0K 10月 30 13:37 Logs
drwxr-xr-x 2 nangy nangy 4.0K 10月 30 12:51 ModMetadata
# nangy @ nangy-deepin in ~/.config/openra [15:31:48]
$ mkdir Content
# nangy @ nangy-deepin in ~/.config/openra [15:31:48]
$ cd Content
# nangy @ nangy-deepin in ~/.config/openra/Content [15:32:43]
$ cp -r ~/Downloads/ra ./
# 资源包目录结构
# nangy @ nangy-deepin in ~/.config/openra/Content [15:34:05]
$ tree
Content
└── ra
└── v2
├── allies.mix
├── cnc
│ └── desert.mix
├── conquer.mix
├── expand
│ ├── chrotnk1.aud
…………
- 复制图标
# nangy @ nangy-deepin in ~/.config/openra/Content [15:34:08]
$ cd /opt/games/openra
# 复制目录,带上参数 -r 递归
# nangy @ nangy-deepin in /opt/games/openra [15:36:30]
$ sudo cp -r ~/Downloads/icons ./
创建快捷方式
# nangy @ nangy-deepin in /opt/games/openra [15:36:30]
$ cd openra-ra
# 创建快捷方式
# nangy @ nangy-deepin in /opt/games/openra/openra-ra [15:50:43]
$ sudo vim openra_ra.desktop
# 填写如下内容,让后保存、退出编辑
[Desktop Entry]
Type=Application
Version=1.0
Name=OpenRA - Red Alert
GenericName=Real Time Strategy Game
GenericName[de]=Echtzeit-Strategiespiel
Icon=/opt/games/openra/icons/hicolor/128x128/apps/openra-ra.png
Exec=/opt/games/openra/openra-ra/RedAlertSimplifiedChinese-rasc_20200517-x86_64.AppImage
Terminal=false
Categories=Game;StrategyGame;
StartupWMClass=openra-ra-release-20210321
MimeType=x-scheme-handler/openra-ra-release-20210321;
# 最后怕执行报错,给个全权限先
# nangy @ nangy-deepin in /opt/games/openra/openra-ra [16:03:26]
$ cd ../../..
# nangy @ nangy-deepin in /opt [16:03:33]
$ sudo chmod 777 -R games/
# 复制快捷方式到 开始菜单 目录
# nangy @ nangy-deepin in /opt/games/openra/openra-ra [15:51:10]
$ cd ~/.local/share/applications
# nangy @ nangy-deepin in ~/.local/share/applications [16:04:51]
$ cp /opt/games/openra/openra-ra/openra_ra.desktop ./