AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   News (https://forums.alliedmods.net/forumdisplay.php?f=59)
-   -   Changes - Part 2: Rolling Release Cycle (https://forums.alliedmods.net/showthread.php?t=271402)

Impact123 10-25-2015 19:44

Re: Changes - Part 2: Rolling Release Cycle
 
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 (Post 2342112)
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?

Potato Uno 10-25-2015 23:41

Re: Changes - Part 2: Rolling Release Cycle
 
Quote:

Originally Posted by psychonic (Post 2356601)
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!

psychonic 10-26-2015 10:37

Re: Changes - Part 2: Rolling Release Cycle
 
Quote:

Originally Posted by Impact123 (Post 2356624)
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.

Potato Uno 10-26-2015 12:16

Re: Changes - Part 2: Rolling Release Cycle
 
Quote:

Originally Posted by psychonic (Post 2356770)
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.

psychonic 10-26-2015 12:35

Re: Changes - Part 2: Rolling Release Cycle
 
Quote:

Originally Posted by Potato Uno (Post 2356794)
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 10-26-2015 21:59

Re: Changes - Part 2: Rolling Release Cycle
 
Quote:

Originally Posted by psychonic (Post 2356770)
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

splewis 10-26-2015 22:37

Re: Changes - Part 2: Rolling Release Cycle
 
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.

psychonic 10-26-2015 22:41

Re: Changes - Part 2: Rolling Release Cycle
 
Quote:

Originally Posted by splewis (Post 2356941)
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.

splewis 10-26-2015 22:54

Re: Changes - Part 2: Rolling Release Cycle
 
Quote:

Originally Posted by psychonic (Post 2356942)
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.

Dr. McKay 10-26-2015 22:56

Re: Changes - Part 2: Rolling Release Cycle
 
Quote:

Originally Posted by splewis (Post 2356944)
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.


All times are GMT -4. The time now is 19:44.

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