Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
9d660d32
Commit
9d660d32
authored
Oct 15, 2025
by
Boris Yumankulov
Committed by
Vitaly Lipatov
Oct 20, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play wps-office-cn: use official site for download (eterbug #18614)
Signed-off-by:
Boris Yumankulov
<
boria138@altlinux.org
>
parent
f212a077
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
wpsoffice-cn.sh
play.d/wpsoffice-cn.sh
+10
-8
No files found.
play.d/wpsoffice-cn.sh
View file @
9d660d32
#!/bin/sh
#!/bin/sh
PKGNAME
=
wpsoffice
PKGNAME
=
wps
-
office
SUPPORTEDARCHES
=
"x86_64"
SUPPORTEDARCHES
=
"x86_64"
VERSION
=
"
$2
"
VERSION
=
"
$2
"
DESCRIPTION
=
"WPS Office for Linux from the official site (Chinese version)"
DESCRIPTION
=
"WPS Office for Linux from the official site (Chinese version)"
URL
=
"https://www.wps.cn/product/wpslinux"
URL
=
"https://www.wps.cn/product/wpslinux"
TIPS
=
"Run epm play wpsoffice=<version> to install some specific version"
.
$(
dirname
$0
)
/common.sh
.
$(
dirname
$0
)
/common.sh
if
[
"
$VERSION
"
=
"*"
]
;
then
warn_version_is_not_supported
#VERSION=$(eget -O- https://archive2.kylinos.cn/DEB/KYLIN_DEB/pool/main/deb/wpsoffice/ | grep -oP '[^/]+_\K[\d.]+(?=_amd64\.deb)' | sort -V | tail -n1)
VERSION
=
"
$(
eget
-O-
https://www.wps.cn/product/wpslinux |
grep
'"banner_txt"'
|
sed
-e
's|.*banner_txt">||'
-e
"s|</p>||"
)
"
[
-n
"
$VERSION
"
]
||
fatal
"Can't get version"
fi
PKGURL
=
"https://archive2.kylinos.cn/DEB/KYLIN_DEB/pool/main/deb/wpsoffice/wpsoffice_
${
VERSION
}
_amd64.deb"
CHN_DEB_URL
=
$(
eget
-O-
'https://linux.wps.cn'
|
grep
-Po
"(?<=['
\"
])http.+?_amd64.deb(?=['
\"
])"
|
sort
-u
)
# fix URL: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=wps-office-cn
uri
=
"
$(
printf
'%s\n'
"
$CHN_DEB_URL
"
|
sed
's#https://wps-linux-personal.wpscdn.cn##'
)
"
secrityKey
=
'7f8faaaa468174dc1c9cd62e5f218a5b'
timestamp10
=
$(
date
'+%s'
)
md5hash
=
$(
printf
'%s%s%s'
"
$secrityKey
"
"
$uri
"
"
$timestamp10
"
|
md5sum
|
cut
-d
' '
-f1
)
PKGURL
=
"
$CHN_DEB_URL
?t=
${
timestamp10
}
&k=
${
md5hash
}
"
install_pkgurl
install_pkgurl
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment