Raised This Month: $12 Target: $400
 3% 

Changes - Part 2: Rolling Release Cycle


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 10-25-2015 , 19:44   Re: Changes - Part 2: Rolling Release Cycle
#61

Here's how you can download the latest version from smdrop without dependencies like lynx.
Code:
wget "http://www.sourcemod.net/smdrop/1.8/$(wget -qO- "http://www.sourcemod.net/smdrop/1.8/" | grep linux | cut -d "\"" -f 2 | tail -n 1)"
At least that's the way it's currently done in the calladmin project.

Quote:
Originally Posted by psychonic View Post
it's not easy to cleanly add in our current setup.
I'm no perl guy but looking at the way the files are packaged and uploaded it looks like you could either rename the package after it has been uploaded and upload that too or create two packages and upload both. What am i missing?
__________________

Last edited by Impact123; 10-25-2015 at 20:02.
Impact123 is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 10-25-2015 , 23:41   Re: Changes - Part 2: Rolling Release Cycle
#62

Quote:
Originally Posted by psychonic View Post
Please don't scrape the downloads page. If you must scrape a file listing, use the "smdrop" directory listing, http://www.sourcemod.net/smdrop/1.7/ http://www.sourcemod.net/smdrop/1.8/
I never knew that existed. Thanks!
Potato Uno is offline
psychonic

BAFFLED
Join Date: May 2008
Old 10-26-2015 , 10:37   Re: Changes - Part 2: Rolling Release Cycle
#63

Quote:
Originally Posted by Impact123 View Post
I'm no perl guy but looking at the way the files are packaged and uploaded it looks like you could either rename the package after it has been uploaded and upload that too or create two packages and upload both. What am i missing?
That would certainly work, but is a bit hacky. You'd wind up having a static filename, like sourcemod-1.8.0-latest and not know exactly what build you've downloaded.

When I said it was complex, I was referring to having a dynamic web link that would redirect to the latest download file (with untouched filename, including the build number).

I'm still not completely sold on the idea of having a programmatic way to download the latest build as I believe you should know what you're downloading, not just grabbing it because it's new. Regardless, it's very clear that it's a feature people want and are just going to scrape the downloads page or file list to get it if not provided another solution. I'll try to have something implemented this week.

Last edited by psychonic; 10-26-2015 at 10:38.
psychonic is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 10-26-2015 , 12:16   Re: Changes - Part 2: Rolling Release Cycle
#64

Quote:
Originally Posted by psychonic View Post
I believe you should know what you're downloading, not just grabbing it because it's new.
You should take that as a measurement of how much trust we put on you SM devs.
Potato Uno is offline
psychonic

BAFFLED
Join Date: May 2008
Old 10-26-2015 , 12:35   Re: Changes - Part 2: Rolling Release Cycle
#65

Quote:
Originally Posted by Potato Uno View Post
You should take that as a measurement of how much trust we put on you SM devs.
It's more of a measurement of it not being feasible to test every change against every supported game on every supported OS.
psychonic is offline
psychonic

BAFFLED
Join Date: May 2008
Old 10-26-2015 , 21:59   Re: Changes - Part 2: Rolling Release Cycle
#66

Quote:
Originally Posted by psychonic View Post
I'm still not completely sold on the idea of having a programmatic way to download the latest build as I believe you should know what you're downloading, not just grabbing it because it's new. Regardless, it's very clear that it's a feature people want and are just going to scrape the downloads page or file list to get it if not provided another solution. I'll try to have something implemented this week.
This has been added now. It's not documented anywhere yet, but I'll add a note on the downloads page tomorrow.

http://sourcemod.net/latest.php?os=<os>&version=<majorVersion>

Valid OS strings are: windows, linux, mac
Valid versions at time of writing are: 1.7, 1.8
psychonic is offline
splewis
Veteran Member
Join Date: Feb 2014
Location: United States
Old 10-26-2015 , 22:37   Re: Changes - Part 2: Rolling Release Cycle
#67

Am I going insane, or have the linux downloads at https://www.sourcemod.net/downloads.php all become archives of archives? The windows & mac ones seem fine.

Last edited by splewis; 10-26-2015 at 22:38.
splewis is offline
psychonic

BAFFLED
Join Date: May 2008
Old 10-26-2015 , 22:41   Re: Changes - Part 2: Rolling Release Cycle
#68

Quote:
Originally Posted by splewis View Post
Am I going insane, or have the linux downloads at https://www.sourcemod.net/downloads.php all become archives of archives? The windows & mac ones seem fine.
Can you link a specific one? I spot-checked a few and they seem to be fine - a single tarball, compressed with gzip.
psychonic is offline
splewis
Veteran Member
Join Date: Feb 2014
Location: United States
Old 10-26-2015 , 22:54   Re: Changes - Part 2: Rolling Release Cycle
#69

Quote:
Originally Posted by psychonic View Post
Can you link a specific one? I spot-checked a few and they seem to be fine - a single tarball, compressed with gzip.
Hmm, you're right. 7Zip seemed to have issues with .tar.gz files for me I suppose. That with the latest links on the smdrop page not being the archives, but the latest filenames had me all confused.
__________________

Last edited by splewis; 10-26-2015 at 22:54.
splewis is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 10-26-2015 , 22:56   Re: Changes - Part 2: Rolling Release Cycle
#70

Quote:
Originally Posted by splewis View Post
Hmm, you're right. 7Zip seemed to have issues with .tar.gz files for me I suppose. That with the latest links on the smdrop page not being the archives, but the latest filenames had me all confused.
Yes, that's how 7-zip handles tarballs. It opens the outer .gz, which contains a .tar.
__________________
Dr. McKay is offline
Closed Thread


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode