build: 修改了一些和打包相关内容
This commit is contained in:
parent
cb7923e4f8
commit
5a5e727b99
|
@ -46,6 +46,7 @@ option(QWINDOWKIT_BUILD_STATIC "Build static libraries" TRUE)
|
|||
option(QWINDOWKIT_INSTALL "Install library" OFF)
|
||||
set(ADS_VERSION 4.3.1)
|
||||
option(BUILD_EXAMPLES "Build the examples" FALSE)
|
||||
option(BUILD_STATIC "Build the static library" TRUE)
|
||||
|
||||
add_subdirectory(3rdparty/qwindowkit)
|
||||
add_subdirectory(3rdparty/QHexView)
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
#! /usr/bin/bash
|
||||
|
||||
export LD_LIBRARY_PATH=/opt/WingHexExplorer2:$LD_LIBRARY_PATH
|
||||
/opt/WingHexExplorer2/WingHexExplorer2 "$@"
|
|
@ -2,7 +2,7 @@
|
|||
Name=WingHexExplorer2
|
||||
Name[zh_CN]=羽云十六进制编辑器
|
||||
Categories=Utility;
|
||||
Exec="/opt/WingHexExplorer2/WingHexExplorer2.sh" %F
|
||||
Exec=/opt/WingHexExplorer2/WingHexExplorer2 %F
|
||||
Encoding=UTF-8
|
||||
Type=Application
|
||||
StartupNotify=false
|
||||
|
|
|
@ -89,7 +89,7 @@ def main():
|
|||
|
||||
package_name = "WingHexExplorer2"
|
||||
architecture = detect_architecture()
|
||||
depends = r"${shlibs:Depends}, ${misc:Depends}"
|
||||
depends = ""
|
||||
|
||||
# start parsing build directory
|
||||
projectdeb = os.path.abspath(args.folder)
|
||||
|
@ -199,20 +199,6 @@ Homepage: https://www.cnblogs.com/wingsummer/
|
|||
shutil.copytree(os.path.join(projectdeb, "lang"),
|
||||
os.path.join(exeBasePath, "lang"))
|
||||
|
||||
print(Fore.GREEN + ">> Copying dependencies..." + Style.RESET_ALL)
|
||||
|
||||
ads_lib = os.path.join(projectdeb, "3rdparty",
|
||||
"Qt-Advanced-Docking-System", "src", f"libqt{qt_version}advanceddocking.so")
|
||||
if (os.path.exists(ads_lib) == False):
|
||||
print(Fore.RED + f"[Error] libqt{qt_version}advanceddocking.so is not found! Maybe you are building it in debug mode which is not allowed!" + Style.RESET_ALL)
|
||||
exit(-4)
|
||||
shutil.copy2(ads_lib, os.path.join(
|
||||
exeBasePath, f"libqt{qt_version}advanceddocking.so"))
|
||||
|
||||
print(Fore.GREEN + ">> Creating program starting entry..." + Style.RESET_ALL)
|
||||
shutil.copy2(os.path.join(buildinstaller, f"{package_name}.sh"),
|
||||
os.path.join(exeBasePath, f"{package_name}.sh"))
|
||||
|
||||
print(Fore.GREEN + ">> Copying License and other materials..." + Style.RESET_ALL)
|
||||
|
||||
material_files = ["LICENSE", "authorband.svg",
|
||||
|
|
|
@ -140,21 +140,6 @@ def main():
|
|||
shutil.copytree(os.path.join(projectdeb, "lang"),
|
||||
os.path.join(exeDebPath, "lang"))
|
||||
|
||||
print(Fore.GREEN + ">> Copying dependencies..." + Style.RESET_ALL)
|
||||
|
||||
ads_lib = os.path.join(projectdeb, "3rdparty",
|
||||
"Qt-Advanced-Docking-System", "src", f"qt{qt_version}advanceddocking.dll")
|
||||
if (os.path.exists(ads_lib) == False):
|
||||
print(Fore.RED + f"[Error] qt{qt_version}advanceddocking.dll is not found! Maybe you are building it in debug mode which is not allowed!" + Style.RESET_ALL)
|
||||
exit(-4)
|
||||
shutil.copy2(ads_lib, os.path.join(
|
||||
exeDebPath, f"qt{qt_version}advanceddocking.dll"))
|
||||
|
||||
# install "qt{qt_version}advanceddocking.dll" to deploy path, otherwise it will fail
|
||||
ads_lib_deploy = os.path.join(
|
||||
os.path.dirname(deploy_exec), f"qt{qt_version}advanceddocking.dll")
|
||||
shutil.copy2(ads_lib, ads_lib_deploy)
|
||||
|
||||
print(Fore.GREEN + ">> Copying License and other materials..." + Style.RESET_ALL)
|
||||
|
||||
material_files = ["LICENSE", "authorband.svg",
|
||||
|
|
Loading…
Reference in New Issue