Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore Snapcraft files. #44812

Merged
merged 2 commits into from
Nov 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions src/installer/snaps/arm/dotnet-sdk-3.1/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: dotnet-sdk
version: 3.1.201
summary: Cross-Platform .NET Core SDK
description: |
.NET Core SDK. https://dot.net/core.

grade: stable
confinement: classic

apps:
dotnet:
command: dotnet

architectures:
- build-on: [amd64]
run-on: [armhf]

base: core

parts:
dotnet-sdk:
plugin: dump
source: https://download.visualstudio.microsoft.com/download/pr/ccbcbf70-9911-40b1-a8cf-e018a13e720e/03c0621c6510f9c6f4cca6951f2cc1a4/dotnet-sdk-3.1.201-linux-arm.tar.gz
source-checksum: sha512/f37d0e55c9f593c6951bea5a6bb1ea3194486956efe08a2a0f266b419d912cdcbf4ac279358976f0bfa1fe560c333ca5d5437f8e8c718bb5963991e4395e0cd7
stage-packages:
- libicu55
- libssl1.0.0
- libcurl3
- libgssapi-krb5-2
- libstdc++6
- zlib1g
- libgcc1
- libtinfo5
- liblttng-ust0
- liburcu4

runtime-wrapper:
plugin: dump
source: .

40 changes: 40 additions & 0 deletions src/installer/snaps/arm/dotnet-sdk-5.0/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: dotnet-sdk
version: 5.0.100-preview.2.20176.6
summary: Cross-Platform .NET Core SDK
description: |
.NET Core SDK. https://dot.net/core.

grade: stable
confinement: classic

apps:
dotnet:
command: dotnet

architectures:
- build-on: [amd64]
run-on: [armhf]

base: core

parts:
dotnet-sdk:
plugin: dump
source: https://download.visualstudio.microsoft.com/download/pr/f87574ee-c128-4e91-b436-68c99d801daf/b296bea9d987a4edaa71df47cd2e7aca/dotnet-sdk-5.0.100-preview.2.20176.6-linux-arm64.tar.gz
source-checksum: sha512/53cbf213e2e97b909b256d931f061178f26e5647424f144266d4af2e12d6443ef7398207a8f4e6f220c61db9ce49de3dc09d88417288a6a61d9b05e1def6b279
stage-packages:
- libicu55
- libssl1.0.0
- libcurl3
- libgssapi-krb5-2
- libstdc++6
- zlib1g
- libgcc1
- libtinfo5
- liblttng-ust0
- liburcu4

runtime-wrapper:
plugin: dump
source: .

40 changes: 40 additions & 0 deletions src/installer/snaps/arm64/dotnet-sdk-5.0/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: dotnet-sdk
version: 5.0.100-preview.2.20176.6
summary: Cross-Platform .NET Core SDK
description: |
.NET Core SDK. https://dot.net/core.

grade: stable
confinement: classic

apps:
dotnet:
command: dotnet

architectures:
- build-on: [amd64]
run-on: [arm64]

base: core18

parts:
dotnet-sdk:
plugin: dump
source: https://download.visualstudio.microsoft.com/download/pr/f87574ee-c128-4e91-b436-68c99d801daf/b296bea9d987a4edaa71df47cd2e7aca/dotnet-sdk-5.0.100-preview.2.20176.6-linux-arm64.tar.gz
source-checksum: sha512/53cbf213e2e97b909b256d931f061178f26e5647424f144266d4af2e12d6443ef7398207a8f4e6f220c61db9ce49de3dc09d88417288a6a61d9b05e1def6b279
stage-packages:
- libicu60
- libssl1.0.0
- libcurl3
- libgssapi-krb5-2
- libstdc++6
- zlib1g
- libgcc1
- libtinfo5
- liblttng-ust0
- liburcu6

runtime-wrapper:
plugin: dump
source: .

45 changes: 45 additions & 0 deletions src/installer/snaps/dotnet-runtime-2.1/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: dotnet-runtime-21
base: core18
version: 2.1.15
summary: Cross-Platform .NET Core Runtime.
description: |
.NET Core runtimes and libraries which are optimized for running .NET Core apps in production. See https://dot.net/core.
.NET Core is a general purpose development platform maintained by Microsoft.

grade: stable
confinement: strict

apps:
dotnet:
command: dotnet
plugs:
- network
- network-bind
- removable-media
- home

slots:
dotnet-runtime:
content: dotnet-runtime-21
interface: content
read: [/]

parts:
dotnet-runtime:
plugin: dump
source: https://download.visualstudio.microsoft.com/download/pr/d2fb0b54-01ce-452c-b2a2-86dbef286265/055ad7740827cbe862d14ceb7ea54fac/dotnet-runtime-2.1.15-linux-x64.tar.gz
source-checksum: sha512/cfd7f7caea7e896dd4d68a05c827c86f38595f24e854edb3f934715ee1268e2623f17ff768215e465fe596cd474497384be2b1381f04ddd6d555665a341f65f6
stage-packages:
- libicu60
- libssl1.0.0
- libcurl3
- libgssapi-krb5-2
- liblttng-ust0
- libstdc++6
- zlib1g
- libgcc1
- lldb
- libunwind8
- libtinfo5
- libdb5.3
- libc6
43 changes: 43 additions & 0 deletions src/installer/snaps/dotnet-runtime-3.1/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: dotnet-runtime-31
base: core18
version: 3.1.1
summary: Cross-Platform .NET Core Runtime.
description: |
.NET Core runtimes and libraries which are optimized for running .NET Core apps in production. See https://dot.net/core.
.NET Core is a general purpose development platform maintained by Microsoft.

grade: stable
confinement: strict

apps:
dotnet:
command: dotnet
plugs:
- network
- network-bind
- removable-media
- home

slots:
dotnet-runtime:
content: dotnet-runtime-31
interface: content
read: [/]

parts:
dotnet-runtime:
plugin: dump
source: https://download.visualstudio.microsoft.com/download/pr/e060c2eb-1476-4d70-857c-24f5eead2070/ff0e007b7373c04f754b3818ffdb2134/dotnet-runtime-3.1.1-linux-x64.tar.gz
source-checksum: sha512/991a89ac7b52d3bf6c00359ce94c5a3f7488cd3d9e4663ba0575e1a5d8214c5fcc459e2cb923c369c2cdb789a96f0b1dfb5c5aae1a04df6e7f1f365122072611
stage-packages:
- libicu60
- libssl1.0.0
- libcurl3
- libgssapi-krb5-2
- liblttng-ust0
- libstdc++6
- zlib1g
- libgcc1
- libtinfo5
- libdb5.3
- libc6
43 changes: 43 additions & 0 deletions src/installer/snaps/dotnet-runtime-5.0/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: dotnet-runtime-50
base: core18
version: 5.0.0-preview.2.20167.3
summary: Cross-Platform .NET Core Runtime.
description: |
.NET Core runtimes and libraries which are optimized for running .NET Core apps in production. See https://dot.net/core.
.NET Core is a general purpose development platform maintained by Microsoft.

grade: stable
confinement: strict

apps:
dotnet:
command: dotnet
plugs:
- network
- network-bind
- removable-media
- home

slots:
dotnet-runtime:
content: dotnet-runtime-50
interface: content
read: [/]

parts:
dotnet-runtime:
plugin: dump
source: https://download.visualstudio.microsoft.com/download/pr/169871b7-ce8f-4518-a342-209f98342569/4bb2abeecf4b064eac907fb28f96b5ca/aspnetcore-runtime-5.0.0-preview.2.20167.3-linux-x64.tar.gz
source-checksum: sha512/c155a94b463020f413b9cc6650219b27c08f331f9d1926966e4c4471b1a3cc79e199fbbd4747e8ad89bd03d66cd90cbc68a5554c54e931ac59f7508810303327
stage-packages:
- libicu60
- libssl1.0.0
- libcurl3
- libgssapi-krb5-2
- liblttng-ust0
- libstdc++6
- zlib1g
- libgcc1
- libtinfo5
- libdb5.3
- libc6
37 changes: 37 additions & 0 deletions src/installer/snaps/dotnet-sdk-2.1/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: dotnet-sdk
version: 2.1.804
summary: Cross-Platform .NET Core SDK
description: |
.NET Core SDK. https://dot.net/core.

grade: stable
confinement: classic

apps:
dotnet:
command: dotnet

base: core18

parts:
dotnet-sdk:
plugin: dump
source: https://download.visualstudio.microsoft.com/download/pr/9ba4d9b0-3fca-40ed-b5a2-1552dfa4f89e/8e5e555b543a7afd8fd764e080d25671/dotnet-sdk-2.1.804-linux-x64.tar.gz
source-checksum: sha512/82b039856dadd2b47fa56a262d1a1a389132f0db037d4ee5c0872f2949c2cd447c33a978e1f532783119aa416860e03f26b840863ca3a97392a4b77f8df5bf66
stage-packages:
- libicu60
- libssl1.0.0
- libcurl3
- libgssapi-krb5-2
- libstdc++6
- zlib1g
- libgcc1
- libtinfo5
- liblttng-ust0
- liburcu6
- lldb

runtime-wrapper:
plugin: dump
source: .

36 changes: 36 additions & 0 deletions src/installer/snaps/dotnet-sdk-3.1/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: dotnet-sdk
version: 3.1.200
summary: Cross-Platform .NET Core SDK
description: |
.NET Core SDK. https://dot.net/core.

grade: stable
confinement: classic

apps:
dotnet:
command: dotnet

base: core18

parts:
dotnet-sdk:
plugin: dump
source: https://download.visualstudio.microsoft.com/download/pr/daec2daf-b458-4ae1-9046-b8ba09b5fb49/733e2d73b41640d6e6bdf1cc6b9ef03b/dotnet-sdk-3.1.200-linux-x64.tar.gz
source-checksum: sha512/5b9398c7bfe7f67cd9f38fdd4e6e429e1b6aaac0fe04672be0f8dca26580fb46906fd1d2deea6a7d3fb07d77e898f067d3ac1805fe077dc7c1adf9515c9bc9a9
stage-packages:
- libicu60
- libssl1.0.0
- libcurl3
- libgssapi-krb5-2
- libstdc++6
- zlib1g
- libgcc1
- libtinfo5
- liblttng-ust0
- liburcu6

runtime-wrapper:
plugin: dump
source: .

36 changes: 36 additions & 0 deletions src/installer/snaps/dotnet-sdk-5.0/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: dotnet-sdk
version: 5.0.100-preview.2.20176.6
summary: Cross-Platform .NET Core SDK
description: |
.NET Core SDK. https://dot.net/core.

grade: stable
confinement: classic

apps:
dotnet:
command: dotnet

base: core18

parts:
dotnet-sdk:
plugin: dump
source: https://download.visualstudio.microsoft.com/download/pr/727a5825-d29a-4f45-beaa-053399f8b5ee/5f15827ceb4851ef87a008f5de0acf6c/dotnet-sdk-5.0.100-preview.2.20176.6-linux-x64.tar.gz
source-checksum: sha512/fface8ff5facdec10d11f8249b426a71cd5bc17aa4e4b1fbe85f4a462e55bdb648a456973a3257f0a700be1aeb0f9bb41639ceca12c2e67d1571e4544ae62bd7
stage-packages:
- libicu60
- libssl1.0.0
- libcurl3
- libgssapi-krb5-2
- libstdc++6
- zlib1g
- libgcc1
- libtinfo5
- liblttng-ust0
- liburcu6

runtime-wrapper:
plugin: dump
source: .

17 changes: 17 additions & 0 deletions src/installer/snaps/dotnet-sdk/dotnet-runtime
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh

dotnet_runtime_snaps=$(ls "$SNAP/../.." | grep dotnet-runtime)

for snap in "$dotnet_runtime_snaps"
do
runtime_dir=$(realpath "$SNAP/../../$snap/current/shared/Microsoft.NETCore.App")
if [ -d "$runtime_dir" ]; then
runtime_version=$(ls "$runtime_dir")
runtime_path="$SNAP_DATA/Microsoft.NETCore.App/$runtime_version"
if [ ! -d "$runtime_path" ]; then
sudo ln -s "$runtime_dir/$runtime_version" "$runtime_path"
fi
fi
done

exec $SNAP/dotnet "$@"
Loading