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
c906a079
Commit
c906a079
authored
Aug 04, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add powershell
parent
d0d87d8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
powershell.sh
play.d/powershell.sh
+34
-0
No files found.
play.d/powershell.sh
0 → 100755
View file @
c906a079
#!/bin/sh
PKGNAME
=
powershell
SUPPORTEDARCHES
=
"x86_64"
VERSION
=
"
$2
"
DESCRIPTION
=
"Microsoft PowerShell from the official site"
.
$(
dirname
$0
)
/common.sh
[
"
$VERSION
"
=
"*"
]
&&
VERSION
=
"[0-9]*"
||
VERSION
=
"
$VERSION
-1"
reponame
=
$(
epm print info
--repo-name
)
vendor
=
$(
epm print info
-s
)
version
=
$(
epm print info
--base-version
)
# Strict supported list
case
$(
epm print info
-e
)
in
Ubuntu/
*
)
BASEURL
=
"https://packages.microsoft.com/ubuntu/
$version
/prod/pool/main/p/powershell/"
file
=
"powershell_
$VERSION
.deb_amd64.deb"
;;
*
)
PKGURL
=
"https://github.com/PowerShell/PowerShell/releases"
file
=
"powershell-
$VERSION
.rh.x86_64.rpm"
;;
esac
PKGURL
=
$(
epm tool eget
--list
--latest
$BASEURL
$file
)
||
fatal
"Can't get package URL"
repack
=
''
[
"
$(
epm print info
-s
)
"
=
"alt"
]
&&
repack
=
'--repack'
epm
install
$repack
"
$PKGURL
"
||
exit
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