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
Vladislav
eepm
Commits
b71b12ea
Commit
b71b12ea
authored
1 year ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add common-jetbrains.sh and use it
parent
bd3a954d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
10 deletions
+44
-10
common-jetbrains.sh
play.d/common-jetbrains.sh
+34
-0
pycharm-pro.sh
play.d/pycharm-pro.sh
+5
-5
pycharm.sh
play.d/pycharm.sh
+5
-5
No files found.
play.d/common-jetbrains.sh
0 → 100755
View file @
b71b12ea
#!/bin/sh
.
$(
dirname
$0
)
/common.sh
# PS
# Returns URL like https://download.jetbrains.com/python/pycharm-professional-2022.2.1.tar.gz
get_jetbrains_url
()
{
CODE
=
"
$1
"
arch
=
"
$(
epm print info
-a
)
"
case
$arch
in
aarch64
)
OS
=
linuxARM64
;;
*
)
OS
=
linux
;;
esac
epm tool eget
-O-
"https://data.services.jetbrains.com/products/releases?code=
$CODE
&latest=true&type=release"
| epm
--inscript
tool json
-b
|
\
grep
'"'
$CODE
'",0,"downloads","'
$OS
'","link"'
|
sed
-e
's|.*[[:space:]]||'
|
sed
-e
's|"||g'
}
# PS python
get_jetbrains_pkgurl
()
{
local
CODE
=
"
$1
"
local
PART
=
"
$2
"
if
[
"
$VERSION
"
=
"*"
]
;
then
get_jetbrains_url
$CODE
else
echo
"https://download-cdn.jetbrains.com/
$PART
/
$PKGNAME
-
$VERSION
.tar.gz"
fi
}
This diff is collapsed.
Click to expand it.
play.d/pycharm-pro.sh
View file @
b71b12ea
#!/bin/sh
PKGNAME
=
pycharm-professional
SUPPORTEDARCHES
=
"x86_64"
SUPPORTEDARCHES
=
"x86_64 aarch64"
VERSION
=
"
$2
"
DESCRIPTION
=
"PyCharm Professional — The Python IDE for Professional Developers (Trial)"
.
$(
dirname
$0
)
/common.sh
.
$(
dirname
$0
)
/common
-jetbrains
.sh
#URL="https://download.jetbrains.com/python/pycharm-professional-2022.2.1.tar.gz"
URL
=
$(
epm tool eget
-O-
"https://data.services.jetbrains.com/products/releases?code=PCP&latest=true&type=release"
| epm
--inscript
tool json
-b
|
grep
'"PCP",0,"downloads","linux","link"'
|
sed
-e
's|.*[[:space:]]||'
|
sed
-e
's|"||g'
)
PKGURL
=
"
$(
get_jetbrains_pkgurl PCP python
)
"
epm
install
"
$URL
"
epm
install
"
$
PKG
URL
"
This diff is collapsed.
Click to expand it.
play.d/pycharm.sh
View file @
b71b12ea
#!/bin/sh
PKGNAME
=
pycharm-community
SUPPORTEDARCHES
=
"x86_64"
SUPPORTEDARCHES
=
"x86_64 aarch64"
VERSION
=
"
$2
"
DESCRIPTION
=
"PyCharm CE — The Python IDE for Professional Developers"
.
$(
dirname
$0
)
/common.sh
.
$(
dirname
$0
)
/common
-jetbrains
.sh
#URL=https://download.jetbrains.com/python/pycharm-community-2022.2.tar.gz
URL
=
$(
epm tool eget
-O-
"https://data.services.jetbrains.com/products/releases?code=PCC&latest=true&type=release"
| epm
--inscript
tool json
-b
|
grep
'"PCC",0,"downloads","linux","link"'
|
sed
-e
's|.*[[:space:]]||'
|
sed
-e
's|"||g'
)
PKGURL
=
"
$(
get_jetbrains_pkgurl PCC python
)
"
epm
install
$URL
epm
install
$
PKG
URL
This diff is collapsed.
Click to expand it.
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