SparkleShare icon indicating copy to clipboard operation
SparkleShare copied to clipboard

Fix/windows build

Open uenz opened this issue 4 years ago • 20 comments

Based on pull-request of etinin Changed to the same git as the MacOS version uses. Changed to use Windows native OpenSSH. The requirements are checked and automatically downloaded as a post build step.

uenz avatar Jun 27 '20 20:06 uenz

Thanks! I'll have a proper look at this soon.

hbons avatar Jun 30 '20 09:06 hbons

Any updates on this?

AvtechScientific avatar Mar 14 '21 08:03 AvtechScientific

@hbons any chance to get this merged?

svenstaro avatar May 20 '21 20:05 svenstaro

Thanks for this. Most of this looks good, but I cannot except downloads from sources that are not vetted like these:

# in SparkleShare/Windows/postBuild.cmd 
https://github.com/senthilrajasek/tartool/releases/download/1.0.0/TarTool.zip

# in SparkleShare/Windows/sha256.cmd
https://github.com/npocmaka/batch.scripts/blob/master/fileUtils/sha256.bat

Is it possible to do this in a different way?

hbons avatar May 21 '21 10:05 hbons

Its almost a year since request, i cant exactly remember the reasons. TarTool maybe could be exchanged to Windows 10 tar.exe, which is now part of windows. Not sure if it also was a year ago. The sha256.bat script is taken from https://github.com/npocmaka/batch.scripts/blob/master/fileUtils/sha256.bat, which should be legal with the link reference in it. Found no other way to verify a file sha256 with windows.

uenz avatar May 21 '21 11:05 uenz

if "git-bash" for windows is installed (which is quite a well known package) - then you can use the command sha256sum. I'm almost sure it also has tar (and many other Linux tools). Download:

https://git-scm.com/download/win

For other OS's:

https://git-scm.com/downloads

On Fri, May 21, 2021 at 2:05 PM uenz @.***> wrote:

Its almost a year since request, i cant exactly remember the reasons. TarTool maybe could be exchanged to Windows 10 tar.exe, which is now part of windows. Not sure if it also was a year ago. The sha256.bat script is taken from https://github.com/npocmaka/batch.scripts/blob/master/fileUtils/sha256.bat , which should be legal with the link reference in it. Found no other way to verify a file sha256 with windows.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hbons/SparkleShare/pull/1947#issuecomment-845872142, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC6NCKZFAMNCLF5E7Y7WYXLTOY46PANCNFSM4OKFUEEQ .

AvtechScientific avatar May 21 '21 11:05 AvtechScientific

I´m aware of git-scm. But that can lead to a path dependency of the buildscript. I can easily eliminate TarToool.exe from the postBuild script by using the windows tar.exe. But i cant see your point about sha256.cmd. Its no external dependency dependency and due to the MIT license it should also be legally ok. And it does its job out of the box.

uenz avatar May 21 '21 14:05 uenz

Thanks for the update. It's not really a legal issue, it's just that the sha256 bash script can easily be changed by someone else to run whatever they want.

hbons avatar May 22 '21 11:05 hbons

Yes that’s clear, therefore the script is part of the patch. The reference in it is only for information. So only the person who clones the repo can change it. When using an other md5 tool this person could also edit the post build script with the same effect.

uenz avatar May 22 '21 11:05 uenz

It were nice if the windows version could be updated. Thank you to all of you for your efforts!

AvtechScientific avatar Aug 04 '21 08:08 AvtechScientific

@hbons Now i think the job for a possible windows version is done. If you don't want the merge all these changes, which I could well understand, i would like to "publish" an unofficial windows build on my fork page so that other could profit from my effort. But only if that is ok for you, because it is your project.

uenz avatar Aug 07 '21 09:08 uenz

@hbons - do you have any objection to the @uenz's fork or do you prefer to merge?

AvtechScientific avatar Aug 12 '21 10:08 AvtechScientific

@uenz - thank you for the so much awaited update to the Windows front-end. Is there any CI pipeline in your fork that builds the Windows install packages automatically? Here is an example of such CI and here are the artifacts.

AvtechScientific avatar Aug 19 '21 09:08 AvtechScientific

@AvtechScientific At the moment not. I don´t think that it is that easy because of the gui. I´l have a look. If you can´t wait for @hbons answer you can download the scoure code and build it for yourself. Steps to do are here.

uenz avatar Aug 20 '21 09:08 uenz

@AvtechScientific At the moment not. I don´t think that it is that easy because of the gui. I´l have a look. If you can´t wait for @hbons answer you can download the scoure code and build it for yourself. Steps to do are here.

Also the example I have provided has gui. I actually assume it will be easier in the SparkleShare case. Probably this .NET docker image can help. Or maybe .NET and Wix in one image.

AvtechScientific avatar Aug 20 '21 10:08 AvtechScientific

Hi @hbons!

We are a charity where needy people are provided with occupation of digitizing ancient books. We use git as our repository. Since most editors are non-tech-savvy Windows user - we heavily rely on SparkleShare's (old) Windows frontend (which has several acute problems). May I ask you to update/merge it, please?... Thank you for your great tool!

PninimOrg avatar Sep 03 '21 13:09 PninimOrg

Hi @hbons, thanks to the hintsof @AvtechScientific i´ve a working travis-ci for the windows build. At the moment im struggling a bit with the upload of the build results to github as "nightly build". A update will follow the next days.

uenz avatar Sep 03 '21 14:09 uenz

Hi @hbons, thanks to the hintsof @AvtechScientific i´ve a working travis-ci for the windows build. At the moment im struggling a bit with the upload of the build results to github as "nightly build". A update will follow the next days.

That's a great news! Waited for it for years! Thank you!

BinyaminPekar avatar Sep 05 '21 19:09 BinyaminPekar

@uenz: could you, please check and confirm that your SparkleShare-windows-nightly.msi can clone a new project? I was not able to clone my SparkleShare fork on GitHub. However I must admit that it could be due to me messing around with the old and new installation and the Windows' AppData folder... Thank you for the great PR!

BinyaminPekar avatar Sep 30 '21 10:09 BinyaminPekar

@BinyaminPekar Its a bit offtopic here, so please file an issue here. Then we get a place for discussion.

uenz avatar Sep 30 '21 18:09 uenz