Skip to content

Commit

Permalink
Fix TruffleSqueak icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Sep 23, 2023
1 parent 2192bc7 commit 78058e5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 22 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,3 @@ lib/**/*.dylib
lib/**/*.so
trufflesqueak*.zip
trufflesqueak*.jar
/src/de.hpi.swa.trufflesqueak/src/resources/trufflesqueak-icon.png
7 changes: 4 additions & 3 deletions mx.trufflesqueak/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
"trufflesqueak:dependencyMap": {
"cuis_test_image": "CuisTestImage-6.0-5053.zip",
"cuis_test_image_tag": "21.3.0",
"icon": "trufflesqueak-icon.png",
"icon_tag": "21.0.0.1",
"test_image": "TruffleSqueakTestImage-6.0-22104-64bit.zip",
"test_image_tag": "22.3.0",
},
Expand Down Expand Up @@ -123,7 +121,10 @@
"projects": {
"de.hpi.swa.trufflesqueak": {
"subDir": "src",
"sourceDirs": ["src"],
"sourceDirs": [
"src",
"resources",
],
"dependencies": [
"TRUFFLESQUEAK_SHARED",
"truffle:TRUFFLE_API",
Expand Down
14 changes: 0 additions & 14 deletions mx.trufflesqueak/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,19 +145,6 @@ download-asset() {
"https://github.com/${GITHUB_SLUG}/releases/download/${git_tag}/${filename}"
}

download-trufflesqueak-icon() {
local target="${BASE_DIRECTORY}/src/resources/trufflesqueak-icon.png"

if ls -1 ${target} 2>/dev/null; then
echo "[TruffleSqueak icon already downloaded]"
return
fi

mkdir -p $(dirname "${target}") || true
download-asset "${DEP_ICON}" "${DEP_ICON_TAG}" "${target}"
echo "[TruffleSqueak icon (${DEP_ICON_TAG}) downloaded successfully]"
}

enable-jdk() {
add-path "$1/bin"
set-env "JAVA_HOME" "$(resolve-path "$1")"
Expand Down Expand Up @@ -248,7 +235,6 @@ set-up-dependencies() {
set-up-mx
shallow-clone-graal
set-up-labsjdk "labsjdk-ce-${java_version:4}"
download-trufflesqueak-icon
download-trufflesqueak-test-image
if [[ "${kind}" != "jar" ]]; then
set-env "STANDALONE_TARGET" "$(filename-standalone "${kind}")"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
"pattern": "\\QMETA-INF/services/com.oracle.truffle.api.instrumentation.TruffleInstrument$Provider\\E"
},
{ "pattern": "\\QMETA-INF/services/java.nio.file.spi.FileSystemProvider\\E" },
{ "pattern": "\\Qcom/oracle/truffle/nfi/backend/libffi/LibFFILanguage.class\\E" },
{ "pattern": "\\Qde/hpi/swa/trufflesqueak/image/PrepareHeadlessImage.st\\E" },
{ "pattern": "\\Qde/hpi/swa/trufflesqueak/io/trufflesqueak-icon.png\\E" }
{ "pattern": "\\Qcom/oracle/truffle/nfi/backend/libffi/LibFFILanguage.class\\E" }
]
},
"bundles": [{ "name": "sun.awt.resources.awt", "classNames": ["sun.awt.resources.awt"] }]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private static void tryToSetTaskbarIcon() {
try {
final Taskbar taskbar = Taskbar.getTaskbar();
if (taskbar.isSupported(Feature.ICON_IMAGE)) {
taskbar.setIconImage(Toolkit.getDefaultToolkit().getImage(SqueakDisplay.class.getResource("/resources/trufflesqueak-icon.png")));
taskbar.setIconImage(Toolkit.getDefaultToolkit().getImage(SqueakDisplay.class.getResource("/trufflesqueak-icon.png")));
}
} catch (Exception e) {
// Never fail if the taskbar icon cannot be set.
Expand Down

0 comments on commit 78058e5

Please sign in to comment.