Skip to content

Commit

Permalink
added microsoft vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
circlenaut committed Jun 23, 2021
1 parent 8318682 commit 8c52af5
Show file tree
Hide file tree
Showing 8 changed files with 136 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# 3rdParty Packages for Solus
The offical Solus 3rd-party repo is [here](https://getsol.us/articles/software/third-party/en/). Otherwise feel free to use the packages below.

## Disclaimer
These packages are **not official**, they are neither supported nor endorsed by the official Solus devs. Do not ask for help in Solus's help forum, instead create an issue [here](https://github.com/circlenaut/Solus-3rdParty/issues).
Expand Down Expand Up @@ -49,4 +50,17 @@ $ sudo eopkg bi --ignore-safety ./browser/downloadhelper/pspec.xml && sudo eopkg
```
**For Lightworks:**
```
$ sudo eopkg bi --ignore-safety ./graphics/lightworks/pspec.xml && sudo && sudo eopkg it lightworks*.eopkg && sudo rm lightworks*.eopkg
$ sudo eopkg bi --ignore-safety ./graphics/lightworks/pspec.xml && sudo && sudo eopkg it lightworks*.eopkg && sudo rm lightworks*.eopkg
```
## Obsolescence
Note that the eopkg package system is being phased out and replaced by Solbuild:
- https://www.reddit.com/r/SolusProject/comments/7trxu9/can_i_use_local_pspecxml_to_build_package/
- https://www.reddit.com/r/SolusProject/comments/epu81o/building_an_eopkg/

**New Build references:**
```
- https://getsol.us/articles/packaging/
- https://getsol.us/articles/packaging/building-a-package/en/
- https://getsol.us/articles/packaging/local-repository/en/
- https://getsol.us/articles/packaging/building-a-package/en/
- https://www.ordinatechnic.com/distribution-specific-guides/Solus/building-a-package-on-solus-for-installation-by-eopkg-from-a-custom-local-repository
5 changes: 5 additions & 0 deletions build_releases.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash

## Microsoft Visual Studio Code:
sudo eopkg bi --ignore-safety ./productivity/visual-studio-code/pspec.xml \
&& cp vscode-microsoft*.eopkg ./releases/vscode-microsoft-latest.eopkg \
&& mv -f vscode-microsoft*.eopkg ./releases/

## Microsoft Edge Dev:
sudo rm /usr/share/pixmaps/microsoft-edge-dev.png
sudo eopkg bi --ignore-safety ./browser/microsoft-edge-dev/pspec.xml \
Expand Down
3 changes: 3 additions & 0 deletions install_releases.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

## Microsoft Visual Studio Code:
sudo eopkg it ./releases/vscode-microsoft-latest.eopkg

## Microsoft Edge Dev:
sudo eopkg it ./releases/microsoft-edge-dev-latest.eopkg

Expand Down
1 change: 1 addition & 0 deletions productivity/visual-studio-code/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ../Makefile.common
5 changes: 5 additions & 0 deletions productivity/visual-studio-code/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# releases:
https://packages.microsoft.com/repos/code/pool/main/c/code/

# alternative:
https://github.com/sidbelbase/a-solus-repo/tree/master/packages/visual-studio-code/builds
22 changes: 22 additions & 0 deletions productivity/visual-studio-code/actions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/python

# Change with each release
srcSubVersion = 1623937013

# Created For Solus Operating System

from pisi.actionsapi import get, pisitools, shelltools

NoStrip = ["/usr"]
IgnoreAutodep = True

# Should not change.
Suffix = "-1"

def setup():
shelltools.system("pwd")
shelltools.system("ar xf code_%s-%s_amd64.deb" % (get.srcVERSION(), srcSubVersion))
shelltools.system("tar xvf data.tar.xz")

def install():
pisitools.insinto("/", "usr")
41 changes: 41 additions & 0 deletions productivity/visual-studio-code/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: visual-studio-code
version: 1.54.1
release: 9
source:
- https://vscode-update.azurewebsites.net/1.54.1/linux-x64/stable : e1876605d5ce21a899ded01f86a2ac910a84bb4ded13eb2bf4d5cd14421e3c13
- https://gist.githubusercontent.com/sidbelbase/803e015f4b8d4cd5aacaf07ae12c58e7/raw/578de0b7b225e1f2fe30f85bafafb24571dcc85f/vscode.desktop: bc5f1dfefcc6ab354282ccf3fa1f8cd13aabdc87b95af4677bd75f56005124df
- https://gist.githubusercontent.com/sidbelbase/803e015f4b8d4cd5aacaf07ae12c58e7/raw/578de0b7b225e1f2fe30f85bafafb24571dcc85f/vscode-url-handler.desktop: a6a05be7d6c2757ccbc8bd2586f882c738db707a8dbd5a3c57e16c37ba1bfea9
license: MIT
component: programming.ide
summary: Editor for building and debugging modern web and cloud applications
description: Visual Studio Code (official binary) is a new type of tool that combines the simplicity of a code editor with what developers need for their core edit-build-debug cycle.
builddeps:
- pkgconfig(alsa)
- pkgconfig(gtk+-3.0)
- pkgconfig(libsecret-1)
- pkgconfig(xcomposite)
- pkgconfig(xcursor)
- pkgconfig(xkbfile)
- pkgconfig(xrandr)
- pkgconfig(xscrnsaver)
- pkgconfig(xtst)
rundeps:
- git
- libxscrnsaver
- nodejs
replaces: code-oss
install: |
export vsdir=/opt/vscode
install -dm00755 $installdir/usr/share/licenses/vscode
install -dm00755 $installdir/$vsdir
install -dm00755 $installdir/usr/bin
install -dm00755 $installdir/usr/share/applications
install -dm00755 $installdir/usr/share/icons
install -Dm00644 $workdir/resources/app/LICENSE.rtf $installdir/usr/share/licenses/vscode/LICENSE.rtf
install -Dm00644 $workdir/resources/app/resources/linux/code.png $installdir/usr/share/icons/vscode.png
install -Dm00644 $sources/vscode.desktop $installdir/usr/share/applications/vscode.desktop
install -Dm00644 $sources/vscode-url-handler.desktop $installdir/usr/share/applications/vscode-url-handler.desktop
cp -R $workdir/* $installdir/$vsdir/
ln -s $vsdir/bin/code $installdir/usr/bin/code
44 changes: 44 additions & 0 deletions productivity/visual-studio-code/pspec.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://getsol.us/standard/pisi-spec.dtd">
<PISI>
<Source>
<Name>Visual Studio Code</Name>
<Homepage>https://code.visualstudio.com</Homepage>
<Packager>
<Name>Phillip Strefling</Name>
<Email>[email protected]</Email>
</Packager>
<Summary>Visual Studio Code is a source-code editor made by Microsoft</Summary>
<Description>Visual Studio Code combines the simplicity of a source code editor with powerful developer tooling, like IntelliSense code completion and debugging. First and foremost, it is an editor that gets out of your way. The delightfully frictionless edit-build-debug cycle means less time fiddling with your environment, and more time executing on your ideas.</Description>
<License>Proprietary</License>
<Archive sha1sum="6f8e4a381ff6e7d4a6612a4e339c38cdcf2869c8" type="binary">https://packages.microsoft.com/repos/code/pool/main/c/code/code_1.57.1-1623937013_amd64.deb</Archive>
<BuildDependencies>
<Dependency>libxscrnsaver</Dependency>
<Dependency>gconf</Dependency>
<Dependency>binutils</Dependency>
</BuildDependencies>
</Source>

<Package>
<Name>vscode-microsoft</Name>
<Icon>vscode-microsoft</Icon>
<Files>
<Path fileType="*">/</Path>
</Files>
<RuntimeDependencies>
<Dependency>libxscrnsaver</Dependency>
<Dependency>gconf</Dependency>
</RuntimeDependencies>
</Package>

<History>
<Update release="1">
<Date>06-23-2021</Date>
<Version>1.57.1</Version>
<Tag>3</Tag>
<Comment>Add Microsoft Visual Studio Code version 1.57.1 released on June 17th 2021</Comment>
<Name>Phillip Strefling</Name>
<Email>[email protected]</Email>
</Update>
</History>
</PISI>

0 comments on commit 8c52af5

Please sign in to comment.