(mode)
| 144 | } |
| 145 | |
| 146 | function getCandidateAppExePaths(mode) { |
| 147 | const preferredProfiles = |
| 148 | mode === "fast" |
| 149 | ? ["release-fast", "release", "debug"] |
| 150 | : ["release", "release-fast", "debug"]; |
| 151 | |
| 152 | const candidates = []; |
| 153 | for (const profile of preferredProfiles) { |
| 154 | candidates.push( |
| 155 | path.join( |
| 156 | BITFUN_ROOT, |
| 157 | "target", |
| 158 | "x86_64-pc-windows-msvc", |
| 159 | profile, |
| 160 | "bitfun-desktop.exe" |
| 161 | ), |
| 162 | path.join( |
| 163 | BITFUN_ROOT, |
| 164 | "src", |
| 165 | "apps", |
| 166 | "desktop", |
| 167 | "target", |
| 168 | profile, |
| 169 | "bitfun-desktop.exe" |
| 170 | ), |
| 171 | path.join(BITFUN_ROOT, "target", profile, "bitfun-desktop.exe") |
| 172 | ); |
| 173 | } |
| 174 | |
| 175 | return candidates; |
| 176 | } |
| 177 | |
| 178 | if (showHelp) { |
| 179 | printHelpAndExit(); |
no test coverage detected