From 3f792fc11bd6cd759da2defb1fa6756d978659c9 Mon Sep 17 00:00:00 2001 From: IMS Date: Sun, 20 Aug 2023 12:36:32 -0700 Subject: [PATCH] my icon noooooooooooooooooooooo (#24) * fix icon.png being nuked * I am bad at my job * bump version --------- Co-authored-by: Cool_Mineman <62723322+CoolMineman@users.noreply.github.com> --- .../java/io/github/coolcrabs/brachyura/ide/Intellijank.java | 6 +++--- buildscript/src/main/java/Buildscript.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/brachyura/src/main/java/io/github/coolcrabs/brachyura/ide/Intellijank.java b/brachyura/src/main/java/io/github/coolcrabs/brachyura/ide/Intellijank.java index 2df57011..0abf153e 100644 --- a/brachyura/src/main/java/io/github/coolcrabs/brachyura/ide/Intellijank.java +++ b/brachyura/src/main/java/io/github/coolcrabs/brachyura/ide/Intellijank.java @@ -52,10 +52,10 @@ public void updateProject(Path projectRoot, IdeModule... ideModules) { Path ideaPath = projectRoot.resolve(".idea"); if (Files.exists(ideaPath)) { - // Delete everything in .idea except for vcs.xml - // We skip vcs.xml since otherwise we'll reset people's Git configurations + // Delete everything in .idea except for vcs.xml and icon.png/svg + // We skip these since otherwise we'll reset people's configurations try (DirectoryStream files = Files.newDirectoryStream(ideaPath, - file -> !"vcs.xml".equals(file.getFileName().toString()))) { + file -> !(file.getFileName().toString().equals("vcs.xml") || file.getFileName().toString().startsWith("icon.")))) { for (Path file : files) { if (Files.isDirectory(file)) { PathUtil.deleteDirectory(file); diff --git a/buildscript/src/main/java/Buildscript.java b/buildscript/src/main/java/Buildscript.java index 9d46c43d..4f4622d3 100644 --- a/buildscript/src/main/java/Buildscript.java +++ b/buildscript/src/main/java/Buildscript.java @@ -243,7 +243,7 @@ public final void test() { public final BJavaModule brachyura = new BJavaModule() { @Override MavenId getId() { - return new MavenId(GROUP, "brachyura", "0.95"); + return new MavenId(GROUP, "brachyura", "0.96"); } @Override