GitSync icon indicating copy to clipboard operation
GitSync copied to clipboard

How to build this app?

Open abhayghatpande opened this issue 8 years ago β€’ 20 comments

Hi Sorry for the rookie question, but could you explain how to build this app please? Do I have to create a new project with the source? Thanks.

abhayghatpande avatar Jul 31 '17 02:07 abhayghatpande

its 04:18 in Norway, i was up all night writing this article: http://eon.codes/blog/2017/07/27/Prototyping-in-playground/ πŸ˜… I will help you tomorrow my friend.

eonist avatar Jul 31 '17 02:07 eonist

Hi @eonist Great post! Would you have time to help me build this? I tried with swift build at the command line, but got the following error:

$ swift build --configuration release
<unknown>:0: error: build had 1 command failures
error: exit(1): /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build-tool -f /Users/abhay/Workspace/GitSync/.build/release.yaml
$ swift -version
Apple Swift version 3.1 (swiftlang-802.0.53 clang-802.0.42)
Target: x86_64-apple-macosx10.9

abhayghatpande avatar Jul 31 '17 15:07 abhayghatpande

I could just upload the .app if you want to try it. It has some bugs but Works 😁 The build process is rather complicated ATM. I have articles on how to do it on eon.codes but still complex if your not a swift dev etc.

eonist avatar Jul 31 '17 15:07 eonist

That would be fantastic!

On Jul 31, 2017 11:27 AM, "Eon" [email protected] wrote:

I could just upload the .app if you want to try it. It has some bugs but Works 😁 The build process is rather complicated ATM. I have articles on how to do it on eon.codes but still complex if your not a swift dev etc.

β€” You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/eonist/GitSync/issues/3#issuecomment-319102298, or mute the thread https://github.com/notifications/unsubscribe-auth/ADWlFq24jIAMiY7lLCp2duj-pCrRLmF7ks5sTfJUgaJpZM4On0wv .

abhayghatpande avatar Jul 31 '17 15:07 abhayghatpande

Cool man. Will do it tonight. An iOS app is also in the works so you can blog on the go and just pull down to sync. πŸ€Έβ€β™€οΈ

eonist avatar Jul 31 '17 15:07 eonist

Wow! You are prolific! Thank you for making our lives that much easier and better.

On Jul 31, 2017 11:37 AM, "Eon" [email protected] wrote:

Cool man. Will do it tonight. An iOS app is also in the works so you can blog on the go and just pull down to sync. πŸ€Έβ€β™€οΈ

β€” You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/eonist/GitSync/issues/3#issuecomment-319107355, or mute the thread https://github.com/notifications/unsubscribe-auth/ADWlFpdBGQFY8DAC3xvO0JA_HPbpbrpDks5sTfSrgaJpZM4On0wv .

abhayghatpande avatar Jul 31 '17 15:07 abhayghatpande

@abhayghatpande All right here we go: https://github.com/eonist/GitSync/releases/tag/0.0.0-alpha.1 Took a bit of time making it work on other computers than my own MacBook. I tried it on a mac mini from 2k10 and it worked. The first time it runs its a bit slow to boot. But then everything is cached and boots fast the subsequent runs. Good luck.

eonist avatar Aug 03 '17 18:08 eonist

I love the versioning. 0.0.0 :D

On Thu, Aug 3, 2017 at 8:37 PM, Eon [email protected] wrote:

Alright here we go: https://github.com/eonist/GitSync/releases/tag/0.0.0- alpha.1

β€” You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/eonist/GitSync/issues/3#issuecomment-320054546, or mute the thread https://github.com/notifications/unsubscribe-auth/AAmKh54rJsJmawUeRfxdPuacxSRPDN59ks5sUhN1gaJpZM4On0wv .

reimertz avatar Aug 03 '17 21:08 reimertz

Something wrong ... won't open ...

screen shot 2017-08-03 at 16 35 25

abhayghatpande avatar Aug 03 '17 21:08 abhayghatpande

Tried multiple times to download. Same issue.

Some info about my computer: screen shot 2017-08-03 at 17 12 12

abhayghatpande avatar Aug 03 '17 21:08 abhayghatpande

@abhayghatpande Sierra has stricter security now. To bring back running apps from unidentified developers simply write sudo spctl --master-disable in terminal and hit enter, as per: http://osxdaily.com/2016/09/27/allow-apps-from-anywhere-macos-gatekeeper/ Or you can build from source your self and GateKeeper won't complain.

eonist avatar Aug 03 '17 22:08 eonist

@reimertz I'm following SemVer: http://eon.codes/blog/2017/01/15/Semantic-Versioning/ 😁

eonist avatar Aug 03 '17 22:08 eonist

@eonist thank you for that override. It opens now.

But not entirely sure if it's working! I set github account and password and local path in the settings.

I tried to add a local and remote repo in the Repos section. Made some commits, but nothing ...

Also the data entered in the Repos sections does not persist ... Only the GitSync repo under Projects is saved.

abhayghatpande avatar Aug 03 '17 23:08 abhayghatpande

@abhayghatpande Thanks for your feedback. I will reconvene tomorrow and fix the "no showing commits" etc πŸ‘

eonist avatar Aug 04 '17 00:08 eonist

@abhayghatpande Should work better now: https://github.com/eonist/GitSync/releases/

  • Persistent when you create repos etc.
  • Fixed the faulty loading of commits (try cloning the welcome repo to your computer to test)

I will try to add Auto clone tomorrow so that it becomes more of a standalone app.✌️

eonist avatar Aug 04 '17 21:08 eonist

@eonist seems to work now. Just to clarify, do we have to git add new files or not? And need to pull down each time to sync with remote?

abhayghatpande avatar Aug 05 '17 14:08 abhayghatpande

@abhayghatpande: You only have to manually clone one time. After that it's all automatic.

  • Gitsync doesn't sync on an interval right now. You have to pull gesture to sync. But I'm adding Auto sync on interval the next few days. I use AutoSync on interval personally, but I use GitSync from 2015, which was just a fancy applescript https://github.com/gitsync/GitSync. It should be trivial to implement in the app. I just have to make sure my background processes are not conflicting etc.

  • I actually added Auto init of repos last night. Just need to make A prompt asking the user if the repo should be created etc.

  • Right now i'm adding A few prompts if there is a merge conflict etc. And a Commit message prompt so the Commits can have more context (Optional)

eonist avatar Aug 05 '17 14:08 eonist

@abhayghatpande Finished the optional Commit MSG prompt tonight: img

  • I will polish it Tomorrow and start adding Merge conflict Prompt. Maybe even AutoClone Prompt πŸ˜…

Feedback is welcomed πŸ˜ƒ

eonist avatar Aug 05 '17 23:08 eonist

Looks good. I can't build it, so unable to test it. If you could add a README to help build it, it will be great.

abhayghatpande avatar Aug 06 '17 01:08 abhayghatpande

Finished the MergeConflictPrompt: img

  • I added instructions how to build it: https://github.com/eonist/GitSync#build but I haven't updated the tags for the dependencies yet. I will do it tomorrow. I will also add CI travis so building can be tested everyday etc.

eonist avatar Aug 08 '17 22:08 eonist