Commit acd1e268 authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

epm play occt: improve (eterbug #18266)

parent 16ed5374
...@@ -8,15 +8,13 @@ VERSION="$3" ...@@ -8,15 +8,13 @@ VERSION="$3"
PKGNAME=$PRODUCT-$VERSION PKGNAME=$PRODUCT-$VERSION
mkdir -p opt/OCCT mkdir -p opt/occt
mv -v $TAR opt/OCCT/occt mv -v $TAR opt/occt/occt
chmod 0755 opt/OCCT/occt chmod 0755 opt/occt/occt
# Disable automatic updates in future release
cat <<EOF | create_file /opt/OCCT/OCCT.config.json touch "opt/occt/disable_update"
{ # Use configs in home dir
"CheckForUpdates": "Disabled", touch "opt/occt/use_home_config"
}
EOF
cat <<EOF | create_file /usr/share/applications/occt.desktop cat <<EOF | create_file /usr/share/applications/occt.desktop
[Desktop Entry] [Desktop Entry]
......
...@@ -2,14 +2,17 @@ ...@@ -2,14 +2,17 @@
PKGNAME=OCCT PKGNAME=OCCT
SUPPORTEDARCHES="x86_64" SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Free, all-in-one stability, stress test, benchmark and monitoring tool for PC" DESCRIPTION="Free, all-in-one stability, stress test, benchmark and monitoring tool for PC"
URL="https://www.ocbase.com/download" URL="https://www.ocbase.com/download"
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
warn_version_is_not_supported if [ "$VERSION" = "*" ] ; then
VERSION=$(eget -q -O- https://www.ocbase.com/download | grep -oP '"versionStr":"\K[0-9]+\.[0-9]+\.[0-9]+' | sort -V | tail -n1)
VERSION=$(eget -q -O- https://www.ocbase.com/download | grep -oP '"versionStr":"\K[0-9]+\.[0-9]+\.[0-9]+' | sort -V | tail -n1) PKGURL="https://dl.ocbase.com/linux/per/stable/OCCT"
PKGURL="https://dl.ocbase.com/linux/per/stable/OCCT" else
PKGURL="https://www.ocbase.com/download/edition:Personal/os:Linux/version:$VERSION"
fi
install_pack_pkgurl "$VERSION" install_pack_pkgurl "$VERSION"
...@@ -8,5 +8,5 @@ SPEC="$2" ...@@ -8,5 +8,5 @@ SPEC="$2"
add_libs_requires add_libs_requires
add_bin_exec_command occt "/opt/OCCT/occt" add_bin_exec_command occt "/opt/occt/occt"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment