本文演示的是 openSUSE,其他发行版操作类似
安装 Wine
sudo zypper ref
sudo zypper in wine winetricks
下载 OrCAD
安装 OrCAD
创建安装容器
WINEARCH=win32 WINEPREFIX=~/wine/OrCAD winetricks vcrun2005
将压缩包复制到 ~/wine/OrCAD/drive_c/Program Files
目录解压
打开 ./OrCAD16.3/capture
目录,运行
WINEARCH=win32 WINEPREFIX=~/wine/OrCAD wine cmd /c "set CDS_LIC_FILE=C:\Program Files\OrCAD16.3\capture\license.txt && Capture.exe"
软件正常打开说明安装正确
附注
在 ./OrCAD16.3/capture
目录下,创建运行脚本 RUN.sh
#!/usr/bin/env bash
WINEARCH=win32 WINEPREFIX=~/wine/OrCAD wine cmd /c "set CDS_LIC_FILE=C:\Program Files\OrCAD16.3\capture\license.txt && Capture.exe"
同样这个目录下,下载图标
wget -o Capture.png -c https://images.cnblogs.com/cnblogs_com/blogs/732415/galleries/2140277/o_231202024954_Capture.png
创建桌面快捷方式 OrCAD.desktop
,并使用 desktop-file-install
安装
示例
[Desktop Entry]
Name=OrCAD Capture
Exec=sh "/home/leeds/wine/OrCAD/drive_c/Program Files/OrCAD16.3/capture/RUN.sh"
Type=Application
StartupNotify=true
Path=/home/leeds/wine/OrCAD/drive_c/Program Files/OrCAD16.3/capture/
Icon=/home/leeds/wine/OrCAD/drive_c/Program Files/OrCAD16.3/capture/Capture.png
标签:Files,Capture,capture,OrCAD,OrCAD16.3,Linux,Wine,OrCAD16,wine
From: https://www.cnblogs.com/leedsgarden/p/17871333.html