Linux 下使用 Wine 安装 OrCAD16

发布时间 2023-12-02 10:57:56作者: Leeds_Garden

本文演示的是 openSUSE,其他发行版操作类似

安装 Wine

官方下载页面

sudo zypper ref
sudo zypper in wine winetricks

下载 OrCAD

OrCAD Capture 绿色版带元件库

安装 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 "~/wine/OrCAD/drive_c/Program Files/OrCAD16.3/capture/RUN.sh"
Type=Application
StartupNotify=true
Path=~/wine/OrCAD/drive_c/Program Files/OrCAD16.3/capture/
Icon=~/wine/OrCAD/drive_c/Program Files/OrCAD16.3/capture/Capture.png