ULX

Author Topic: Ulx Build  (Read 4394 times)

0 Members and 3 Guests are viewing this topic.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Ulx Build
« on: January 24, 2017, 07:37:57 AM »
I just had a quick question, how is the ulx.build determined?
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Ulx Build
« Reply #1 on: January 24, 2017, 06:28:25 PM »
It's Unix Epoch time. It's added to every commit with a Git hook that all the ULX devs have. I can share the script of you'd like.
Experiencing God's grace one day at a time.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Ulx Build
« Reply #2 on: January 24, 2017, 06:33:35 PM »
It's not really the specific build you use, I want to make my own build for some projects I'm working on but I don't know how to number them.


Can I just make it any number I want?
« Last Edit: January 24, 2017, 06:41:05 PM by iViscosity »
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: Ulx Build
« Reply #3 on: January 25, 2017, 10:14:49 AM »
Yes, you can use any number system you like, but the general idea is higher number = newer version. We use a script to automatically set it to a timestamp because:
 1) If two developers commit at the same time without getting the other newer build number, the build number would not have incremented two times
 2) We're lazy and would likely forget to bump the build number, thus preventing our update checker from downloading the latest changes. :P
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Ulx Build
« Reply #4 on: January 25, 2017, 10:15:45 AM »
How would you run that because I'm a very forgetful person

Sent from Tapatalk. Owner of iViscosity Gaming.

I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: Ulx Build
« Reply #5 on: January 25, 2017, 10:18:48 AM »
Git pre and post commit hooks. I can't remember if Megiddo or I wrote the actual hooks we are using, but it gets the job done. Since our hooks are technically public, I will post them here:

*Disclaimer* This is advanced stuff and is not perfect, may cause glitches with certain git clients, etc.
https://github.com/TeamUlysses/git-hooks
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Ulx Build
« Reply #6 on: January 25, 2017, 02:25:44 PM »
So do you use that with a webhook or something? I'm confused as to how that works, which probably means I should use it :P
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: Ulx Build
« Reply #7 on: January 25, 2017, 03:13:20 PM »
So do you use that with a webhook or something? I'm confused as to how that works, which probably means I should use it :P
Git hooks go in the .git metadata directory Git creates when you git init or git clone a repository. Specifically, they go in .git/hooks with the names describing when they should execute.
bw81@ulysses-forums ~ % whoami
Homepage

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Ulx Build
« Reply #8 on: January 26, 2017, 05:15:58 AM »
Ah, thanks. I just got Git recently so I'm still new to it.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Ulx Build
« Reply #9 on: January 28, 2017, 04:14:14 PM »
Git pre and post commit hooks. I can't remember if Megiddo or I wrote the actual hooks we are using, but it gets the job done.

You wrote the initial version, and I generalized so it would work across all our repositories.

Let me emphasize, however, that this is the solution we chose, but may not be the best option for you.
Experiencing God's grace one day at a time.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Ulx Build
« Reply #10 on: January 28, 2017, 11:23:30 PM »
You wrote the initial version, and I generalized so it would work across all our repositories.

Let me emphasize, however, that this is the solution we chose, but may not be the best option for you.

I probably won't use the exact version, but I'd like something to be automated when I use it, as I feel like that would make it much easier in case I forget and I can always have a script test if it's smaller than the incremented number for outdated-ness.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.