diff --git a/GX_ISPTool.pro b/GX_ISPTool.pro index f81c076cd2295da3c7bbbf17f447550a90de19bb..023e9fa2534a1a5ef0cab1062a1ef513c0b52456 100644 --- a/GX_ISPTool.pro +++ b/GX_ISPTool.pro @@ -2,7 +2,7 @@ QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets -TARGET = GX-ISPTool +TARGET = gx-isptool TEMPLATE = app CONFIG += c++11 @@ -39,7 +39,7 @@ contains(TARGET_ARCH, x86_64){ } unix:!macx { - LIBS += -L$$_PRO_FILE_PWD_/hidapi/linux -lhidapi + LIBS += -lhidapi-hidraw -lhidapi-libusb } macx: { @@ -58,3 +58,17 @@ DISTFILES += \ logo.rc RC_FILE += logo.rc + +unix:!macx { + gx_isptool.files += $$_PRO_FILE_PWD_/gx-isptool + gx_isptool.path = /usr/bin + INSTALLS += gx_isptool + + gx_isptool_icon.files += $$_PRO_FILE_PWD_/gx-isptool.png + gx_isptool_icon.path = /usr/share/icons/hicolor/128x128/apps + INSTALLS += gx_isptool_icon + + gx_isptool_desktop.files += $$_PRO_FILE_PWD_/gx-isptool.desktop + gx_isptool_desktop.path = /usr/share/applications + INSTALLS += gx_isptool_desktop +} diff --git a/README.md b/README.md index f037eb29032f982dda6f61926799c0f6ac94c452..4f2abc0ca7652ea52f285d4da76e19165e75b2c0 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,25 @@ GX芯片下载工具,用于连接USB给GX芯片下载固件/调试固件,持 #### 安装教程 -完善中 + +##### Arch Linux + +Arch Linux 可以通过 [AUR gx-isptool-git](https://aur.archlinux.org/packages/gx-isptool-git) 或[自建源](https://github.com/taotieren/au-repo)安装 + +```bash +yay -Syu gx-isptool +``` +##### Linux 源码编译 + +```bash +git clone https://gitee.com/gxchip/GX_ISPTool.git +cd GX_ISPTool + +# 依赖 `qt5` `libhidapi` +# 参考 [AUR gx-isptool-git](https://aur.archlinux.org/packages/gx-isptool-git) 中的编译 +qmake +make install +``` #### 使用说明 @@ -33,4 +51,4 @@ GX芯片下载工具,用于连接USB给GX芯片下载固件/调试固件,持 #### 致谢 -1. 感谢hidapi \ No newline at end of file +1. 感谢hidapi diff --git a/gx-isptool.desktop b/gx-isptool.desktop new file mode 100644 index 0000000000000000000000000000000000000000..092c95442af778a455d192dff939b75357358c5e --- /dev/null +++ b/gx-isptool.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=gx-isptool +Comment=GX (感芯科技) 芯片下载工具,用于连接USB给GX芯片下载固件/调试固件,持续开发中,欢迎支持~ +Exec=gx-isptool +Icon=gx-isptool.png +Terminal=false +StartupNotify=false +Categories=Development;Utility; diff --git a/gx-isptool.png b/gx-isptool.png new file mode 100644 index 0000000000000000000000000000000000000000..eb73bb37e737557c63623f826f13a67ff1633291 Binary files /dev/null and b/gx-isptool.png differ