Skip to content
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

Add Windows support #1592

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Conversation

RayyanAnsari
Copy link

@RayyanAnsari RayyanAnsari commented Feb 11, 2023

Fixes #1593

Windows uses the .ico format for application icons.
Modify the pyinstaller spec file to allow building a single .exe file on Windows.
Do not set Unix specific options when running on Windows.
Use the CREATE_NO_WINDOW creation flag to avoid launching a visible console window.
On Windows, files with O_TEMPORARY flag cannot be opened more than once.
python/cpython#88221

A better solution is needed.
@m3nu
Copy link
Contributor

m3nu commented Feb 13, 2023

Good stuff! I'll try to test this on a VM, but the changes look sensible.

Could we add Windows as testing OS on Github Actions? And maybe build a binary there too?

@m3nu
Copy link
Contributor

m3nu commented Feb 13, 2023

Minor linting error about ordered imports. And one import will need a condition to check the OS.

@RayyanAnsari
Copy link
Author

I'm not sure how to approach the fix for the temporary files, see my last commit 15f214d.

Could we add Windows as testing OS on Github Actions? And maybe build a binary there too?

There are no Borg releases yet with Windows builds, so we would have to fetch a build off the CI. This PR is still a draft, because I haven't thoroughly tested it, and I know for a fact that remote repositories do not yet work in Borg.

Minor linting error about ordered imports. And one import will need a condition to check the OS.

Trivial fix, will do.

@m3nu m3nu mentioned this pull request Feb 13, 2023
2 tasks
@real-yfprojects real-yfprojects linked an issue Mar 4, 2023 that may be closed by this pull request
@stale
Copy link

stale bot commented Jul 19, 2023

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the wontfix label Jul 19, 2023
@real-yfprojects real-yfprojects added type:enhancement Improvement of an existing function help wanted This issue is available, comment if you want to fix it os:windows Affects Windows only and removed wontfix labels Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted This issue is available, comment if you want to fix it os:windows Affects Windows only type:enhancement Improvement of an existing function
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error adding repo on windows Vorta for Windows
3 participants