-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion: Pack frontend and backend in one file with Appveyor #27
Comments
Yeah, having the second job wait until the first one has finished probably works. (It assumes that AppVeyor starts jobs in a consistent order, and it probably does.) I don't expect to work on it until this weekend. |
Remove |
BTW, is it possible to replace
I tried this patch in frontend as per this article: index 6c13ff5..4590647 100644
--- a/frontend/wslbridge.cc
+++ b/frontend/wslbridge.cc
@@ -1120,7 +1120,7 @@ int main(int argc, char *argv[]) {
errorSocket = std::unique_ptr<Socket>(new Socket);
}
- const auto bashPath = findSystemProgram(L"bash.exe");
+ const auto bashPath = findSystemProgram(L"wsl.exe");
const auto backendPathInfo = normalizePath(findBackendProgram(customBackendPath));
const auto backendPathWin = backendPathInfo.first;
const auto fsname = backendPathInfo.second;
@@ -1189,7 +1189,6 @@ int main(int argc, char *argv[]) {
cmdLine.append(L" ");
cmdLine.append(mbsToWcs(distroGuid));
}
- cmdLine.append(L" -c ");
appendBashArg(cmdLine, bashCmdLine);
const auto outputPipe = createPipe(); But that patch shows this error:
|
I don't see the need to use
I would guess it's an escaping issue. |
@rprichard there is no current LTS release containing WSL at all. It was temporarily enabled in 1607 but has since been patched out (since including a bleeding-edge beta feature in LTS at the time was absurd). The new LTS should release as 1809 later this year and will have wsl.exe. |
Will 1809 have wsl.exe only? Where did you get that? |
@Biswa96 LTS releases every two years. The next Win10 LTS will be 1809. Bash.exe is deprecated, but it will be retained for compatibility. My point was that there is no point in targeting 1607 (which only has bash.exe) since it doesn't support WSL on LTSB, and all currently-supported and future releases in which WSL is enabled contain and will contain wsl.exe. |
I've seen that the current Appveyor.yml files compile frontend and backend separately. There is a procedure which can pack both files in one tar.gz container. All credit goes to @IlyaFinkelshteyn for sharing this example share-artifacts-between-jobs.yml. Here is an example of
modified version of that Appveyor.yml file:
This configuration does: Build backend in Ubuntu image > Upload it in artifacts > Build frontend in Windows > Download backend > Download cygwin1.dll > pack all three files in tar.gz. This may be converted to python. I shall try that.
The text was updated successfully, but these errors were encountered: