-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
80 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
# snapcraft specifics | ||
parts | ||
stage | ||
prime | ||
*.snap | ||
.snapcraft | ||
__pycache__ | ||
*.pyc | ||
|
||
# generated | ||
snap/snapcraft.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# all sources should have &r=1 amended | ||
latest: 2024-12R | ||
2024-12R: | ||
eclipse-java: | ||
amd64: | ||
source: https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/2024-12/R/eclipse-java-2024-12-R-linux-gtk-x86_64.tar.gz&r=1 | ||
checksum: "sha512/dae3fdace259f237afaadad98ac3c16bf571eb7e2704200e5159de9a6bde594c4112e983dd0eac3c35c0fd5325f1cf9d798e2fd511a5059fc02ceca71391927c" | ||
eclipse-pde: | ||
amd64: | ||
source: https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/2024-12/R/eclipse-committers-2024-12-R-linux-gtk-x86_64.tar.gz&r=1 | ||
checksum: "sha512/133dfeb699fe604c24d96ec521dfb201196505eaceaefd62f1d00e5d87953ee224839f113a1603c4c8dfec433155827c2d175a5ad838e6d32a7dd477a728c620" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
yglu | ||
setuptools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
SOURCE=$(dirname -- ${BASH_SOURCE[0]}) | ||
echo source-root: $SOURCE | ||
|
||
export ECLIPSE_PACKAGE=${ECLIPSE_PACKAGE:='eclipse-java'} | ||
echo setting up for $ECLIPSE_PACKAGE | ||
export ECLIPSE_ARCH=${ECLIPSE_ARCH:=`dpkg --print-architecture`} | ||
echo target arch is $ECLIPSE_ARCH | ||
|
||
SNAPCRAFT_YAML=$SOURCE/snap/snapcraft.yaml | ||
|
||
YGLU_ENABLE_ENV=true pipx run --pip-args "-r requirements.txt" yglu snapcraft.yaml.template | tee $SNAPCRAFT_YAML | ||
|
||
if [ $? -eq 0 ]; then | ||
echo written $SNAPCRAFT_YAML for $ECLIPSE_PACKAGE. | ||
else | ||
echo ERROR see above. | ||
return 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [ -n $1 ]; then | ||
ECLIPSE_PACKAGE=$1 | ||
fi | ||
|
||
export ECLIPSE_PACKAGE=${ECLIPSE_PACKAGE:='eclipse-java'} | ||
export ECLIPSE_ARCH=${ECLIPSE_ARCH:=`dpkg --print-architecture`} | ||
|
||
. ./set-eclipse-package.sh | ||
|
||
CLEAN=${CLEAN:=false} | ||
|
||
if $CLEAN; then | ||
sudo snap remove --purge $ECLIPSE_PACKAGE | ||
snapcraft clean | ||
fi | ||
|
||
# sudo less /var/snap/lxd/common/lxd/logs/lxd.log | ||
snapcraft pack --debug | ||
|
||
AUTORUN=${AUTORUN:=false} | ||
if $AUTORUN; then | ||
snap run $ECLIPSE_PACKAGE & | ||
fi |