Skip to content
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
6 changes: 5 additions & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=dazednconfused_macata-launcher
run: |
mvn -B verify sonar:sonar \
-Dsonar.projectKey=dazednconfused_macata-launcher \
-Dsonar.organization=dazednconfused \
-Dsonar.token=$SONAR_TOKEN
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
<maven.compiler.target>11</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<sonar.organization>dazednconfused</sonar.organization>
<sonar.organization>dazednconfused</sonar.organization> <!-- should match .github/workflows/sonarcloud.yml -->
<sonar.projectKey>dazednconfused_macata-launcher</sonar.projectKey> <!-- ^ditto -->
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<sonar.cpd.exclusions>**/gui/**</sonar.cpd.exclusions>
</properties>
Expand Down
15 changes: 9 additions & 6 deletions src/main/resources/osx_launcher_wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@ else
export ${K_LIBRARY_PATH}=. ${K_FRAMEWORK_PATH}=.
fi

# check if 'cataclysm-tiles' or 'cataclysm-bn-tiles' exists, and run the appropriate one
if [[ -f ./cataclysm-tiles ]]; then
EXECUTABLE="./cataclysm-tiles"
elif [[ -f ./cataclysm-bn-tiles ]]; then
EXECUTABLE="./cataclysm-bn-tiles"
else
# find the first matching executable that starts with "cataclysm-" and is executable
for candidate in ./cataclysm-*; do
if [[ -x "$candidate" && ! -d "$candidate" ]]; then
EXECUTABLE="$candidate"
break
fi
done

if [[ -z "$EXECUTABLE" ]]; then
echo "No valid executable found!"
exit 1
fi
Expand Down
Loading