修复gtk3版本声明问题; 版本号改为动态读取

master
yutent 2023-09-06 14:47:56 +08:00
parent 5424d3ff74
commit 1ba77b4cce
3 changed files with 5 additions and 2 deletions

View File

@ -1,10 +1,12 @@
#!/bin/bash #!/bin/bash
version=$(python3 -c "import sys; sys.path.insert(0, './usr/lib/python3/dist-packages/');from webengine.gtk3 import version;print(version)")
if [ -d unpack ]; then if [ -d unpack ]; then
sudo rm -rf unpack sudo rm -rf unpack
fi fi
version="0.3.0"
mkdir -p unpack/DEBIAN mkdir -p unpack/DEBIAN

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
build = (0, 3, 0) build = (0, 4, 0)
version = '.'.join(map(str, build)) version = '.'.join(map(str, build))

View File

@ -5,6 +5,7 @@
import gi, os, json, shutil, hashlib, time, threading import gi, os, json, shutil, hashlib, time, threading
gi.require_version('Gtk', '3.0')
gi.require_version("WebKit2", "4.1") gi.require_version("WebKit2", "4.1")