File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed
Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -134,14 +134,26 @@ jobs:
134134
135135 # Define the path to the executable. On Windows, the shell is bash (Git Bash),
136136 # so we don't need to add a '.exe' or other suffix.
137+ if
138+
139+ # Declare a variable for the executable path
140+ EXECUTABLE=""
141+
142+ # Correctly determine the executable path for each platform
143+ if [[ "${{ matrix.platform }}" == "windows" ]]; then
144+ EXECUTABLE="$APP_DIR/sirius.exe"
145+ elif [[ "${{ matrix.platform }}" == "macos" ]]; then
146+ # Standard path for an executable inside a macOS .app bundle
147+ EXECUTABLE="$APP_DIR/sirius.app/Contents/MacOS/sirius"
148+ else # This covers the "linux" platform
137149 EXECUTABLE="$APP_DIR/bin/sirius"
138-
139- # Add execute permissions for Linux and macOS
150+ fi
151+
152+ # Add execute permissions for non-Windows platforms
140153 if [[ "${{ matrix.platform }}" != "windows" ]]; then
141- echo "Setting execute permissions on $EXECUTABLE"
142- chmod +x "$EXECUTABLE"
154+ echo "Setting execute permissions on $EXECUTABLE"
155+ chmod +x "$EXECUTABLE"
143156 fi
144-
145157 # Run the self-test command
146158 echo "Executing : $EXECUTABLE selftest"
147159 " $EXECUTABLE" selftest
You can’t perform that action at this time.
0 commit comments