MCPcopy Create free account
hub / github.com/GCWing/BitFun / getCandidateAppExePaths

Function getCandidateAppExePaths

BitFun-Installer/scripts/build-installer.cjs:146–176  ·  view source on GitHub ↗
(mode)

Source from the content-addressed store, hash-verified

144}
145
146function 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
178if (showHelp) {
179 printHelpAndExit();

Callers 1

Calls 2

pushMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected