mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-12-14 02:52:03 +08:00
1.7.1内容初步完成
This commit is contained in:
@@ -4,13 +4,13 @@ Priority: optional
|
||||
Maintainer: @deb_packager@
|
||||
Build-Depends: debhelper (>= 3.0), fakeroot
|
||||
Standards-Version: 3.7.3.0
|
||||
|
||||
Package: @deb_package_name@
|
||||
Depends: @package_depends@
|
||||
Recommends: libcapi20-3, libcups2, libdbus-1-3, libfontconfig1, libfreetype6, libglu1-mesa | libglu1, libgnutls30 | libgnutls28 | libgnutls26, libgsm1, libgssapi-krb5-2, libjpeg62-turbo | libjpeg8, libkrb5-3, libodbc1, libosmesa6, libpng16-16 | libpng12-0, libsane | libsane1, libsdl2-2.0-0, libtiff5, libv4l-0, libxcomposite1, libxcursor1, libxfixes3, libxi6, libxinerama1, libxrandr2, libxrender1, libxslt1.1, libxxf86vm1
|
||||
Replaces: @old_package@
|
||||
Provides: @old_package@
|
||||
Conflicts: @old_package@
|
||||
Architecture: i386
|
||||
Architecture: @Arch@
|
||||
Multi-Arch: foreign
|
||||
Description: @app_description@
|
||||
Version:@deb_version_string@
|
||||
|
||||
1
package-script/deepin-wine-runner.svg
Normal file
1
package-script/deepin-wine-runner.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 11 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 35 KiB |
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"Version": "1.7.0"
|
||||
"Version": "1.7.1"
|
||||
}
|
||||
@@ -2,8 +2,8 @@
|
||||
# 使用系统默认的 python3 运行
|
||||
###########################################################################################
|
||||
# 作者:gfdgd xi、为什么您不喜欢熊出没和阿布呢
|
||||
# 版本:1.7.0
|
||||
# 更新时间:2022年07月18日
|
||||
# 版本:1.7.1
|
||||
# 更新时间:2022年07月19日
|
||||
# 感谢:感谢 wine 以及 deepin-wine 团队,提供了 wine 和 deepin-wine 给大家使用,让我能做这个程序
|
||||
# 基于 Python3 的 tkinter 构建
|
||||
###########################################################################################
|
||||
@@ -46,6 +46,7 @@ def DisbledOrEnabled(choose: bool):
|
||||
exePath.setDisabled(choose)
|
||||
packageName.setDisabled(choose)
|
||||
versionName.setDisabled(choose)
|
||||
buildDeb.setDisabled(choose)
|
||||
|
||||
|
||||
class PackageDebThread(QtCore.QThread):
|
||||
@@ -128,7 +129,7 @@ def OpenPackageFolder():
|
||||
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
|
||||
information = json.loads(readtxt(f"{programPath}/information.json"))
|
||||
version = information["Version"]
|
||||
iconPath = "{}/icon.png".format(programPath)
|
||||
iconPath = "{}/deepin-wine-runner.svg".format(programPath)
|
||||
tips = """第一个文本框是应用程序中文名
|
||||
第二个文本框是应用程序英文名
|
||||
第三个文本框是最终生成的包的描述
|
||||
|
||||
@@ -314,22 +314,54 @@ if [ -n "$desktop_file_categories" ]; then
|
||||
find -iname "$desktop_file_icon" -exec cp "{}" "$outentries/icons/{}" \;
|
||||
|
||||
fi
|
||||
systemVersion=`cat /etc/os-version`
|
||||
systemVersion=${systemVersion,,} # 获取系统版本
|
||||
# 判断系统是否为 UOS
|
||||
if [[ "uos" == *"$systemVersion"* ]]; then
|
||||
# 如果系统是 UOS,使用默认的打包方式
|
||||
cd "$dstdir"
|
||||
echo "$outdir/* /opt/apps/$deb_package_name" &>> "debian/install"
|
||||
echo "<=====done."
|
||||
|
||||
echo "=====>Creating deb package..."
|
||||
fakeroot "debian/build" "$dstdir"
|
||||
echo "<=====done."
|
||||
|
||||
echo "=====> Removing temporary files..."
|
||||
mv "$dstdir/$PKG_FILE" "$uos_package_save"
|
||||
|
||||
#rm -rf "$stgdir"
|
||||
#rm -rf "$dstdir"
|
||||
echo "<=====done."
|
||||
echo -e "\n\nDeb file generated: $PKG_FILE\n"
|
||||
echo "+++++ all done. +++++"
|
||||
|
||||
exit 0
|
||||
fi
|
||||
# 非 UOS 操作系统,使用修改后的 dpkg-deb -b 打包方式
|
||||
# 参考 @虚幻的早晨 在 https://bbs.deepin.org/post/240570 和 https://wwd.lanzouy.com/ipwOt082k9qb 的建议和代码进行修改
|
||||
# 这里有个小坑坑,记录一下,如果想要使用 dpkg-deb -b 打包,需要修改 debian/control,修改为如下内容才能正常被 dpkg-deb 打包(删除空行和添加 Version):
|
||||
# Source: @deb_package_name@
|
||||
# Section: non-free/otherosfs
|
||||
# Priority: optional
|
||||
# Maintainer: @deb_packager@
|
||||
# Build-Depends: debhelper (>= 3.0), fakeroot
|
||||
# Standards-Version: 3.7.3.0
|
||||
# Package: @deb_package_name@
|
||||
# Depends: @package_depends@
|
||||
# Recommends: libcapi20-3, libcups2, libdbus-1-3, libfontconfig1, libfreetype6, libglu1-mesa | libglu1, libgnutls30 | libgnutls28 | libgnutls26, libgsm1, libgssapi-krb5-2, libjpeg62-turbo | libjpeg8, libkrb5-3, libodbc1, libosmesa6, libpng16-16 | libpng12-0, libsane | libsane1, libsdl2-2.0-0, libtiff5, libv4l-0, libxcomposite1, libxcursor1, libxfixes3, libxi6, libxinerama1, libxrandr2, libxrender1, libxslt1.1, libxxf86vm1
|
||||
# Replaces: @old_package@
|
||||
# Provides: @old_package@
|
||||
# Conflicts: @old_package@
|
||||
# Architecture: @Arch@
|
||||
# Multi-Arch: foreign
|
||||
# Description: @app_description@
|
||||
# Version:@deb_version_string@
|
||||
|
||||
cd "$dstdir"
|
||||
echo "$outdir/* /opt/apps/$deb_package_name" &>> "debian/install"
|
||||
echo "<=====done."
|
||||
|
||||
echo "=====>Creating deb package..."
|
||||
fakeroot "debian/build" "$dstdir"
|
||||
mv debian DEBIAN
|
||||
dpkg-deb -b ./ ../package_save/uos
|
||||
echo "<=====done."
|
||||
|
||||
echo "=====> Removing temporary files..."
|
||||
mv "$dstdir/$PKG_FILE" "$uos_package_save"
|
||||
|
||||
#rm -rf "$stgdir"
|
||||
#rm -rf "$dstdir"
|
||||
echo "<=====done."
|
||||
echo -e "\n\nDeb file generated: $PKG_FILE\n"
|
||||
echo "+++++ all done. +++++"
|
||||
|
||||
exit 0
|
||||
exit 0
|
||||
Reference in New Issue
Block a user