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
955a95f0
Commit
955a95f0
authored
Mar 30, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play code: add version support (f.i. epm play code 1.42.1)
parent
0fb614f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
code.sh
play.d/code.sh
+10
-2
No files found.
play.d/code.sh
View file @
955a95f0
...
@@ -5,6 +5,7 @@ DESCRIPTION="Visual Studio Code from the official site"
...
@@ -5,6 +5,7 @@ DESCRIPTION="Visual Studio Code from the official site"
.
$(
dirname
$0
)
/common.sh
.
$(
dirname
$0
)
/common.sh
VERSION
=
"
$2
"
arch
=
"
$(
$DISTRVENDOR
-a
)
"
arch
=
"
$(
$DISTRVENDOR
-a
)
"
case
"
$arch
"
in
case
"
$arch
"
in
...
@@ -28,8 +29,15 @@ pkgtype="$($DISTRVENDOR -p)"
...
@@ -28,8 +29,15 @@ pkgtype="$($DISTRVENDOR -p)"
[
"
$pkgtype
"
=
"deb"
]
||
repack
=
'--repack'
[
"
$pkgtype
"
=
"deb"
]
||
repack
=
'--repack'
PKG
=
/tmp/
$PKGNAME
.
$pkgtype
PKG
=
/tmp/
$PKGNAME
.
$pkgtype
# TODO: wget does not support: Content-Disposition: attachment; filename="code-1.52.1-1608137084.el7.x86_64.rpm"
$EGET
-O
$PKG
"https://code.visualstudio.com/sha/download?build=stable&os=linux-
$pkgtype
-
$arch
"
||
fatal
if
[
-n
"
$VERSION
"
]
;
then
# get the version
$EGET
-O
$PKG
"https://update.code.visualstudio.com/
$VERSION
/linux-
$pkgtype
-
$arch
/stable"
||
fatal
else
# get latest version
# TODO: wget does not support: Content-Disposition: attachment; filename="code-1.52.1-1608137084.el7.x86_64.rpm"
$EGET
-O
$PKG
"https://code.visualstudio.com/sha/download?build=stable&os=linux-
$pkgtype
-
$arch
"
||
fatal
fi
epm
install
$repack
"
$PKG
"
||
exit
epm
install
$repack
"
$PKG
"
||
exit
rm
-fv
$PKG
rm
-fv
$PKG
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