Comments (9)
The thing is that we don't have a stable and unstable branch for compiler dev, given that with the complexity of it even a small "stable" fix can create unplanned regressions
from haxe.org.
We'll need one link for each download. We should follow the names that builds.haxe.org uses and make it available as http://haxe.org/download/latest/windows
, http://haxe.org/download/linux64
etc.
@jasononeil: Can you set this up?
from haxe.org.
If we can guarantee that our download files will follow the same naming convention into the future, then this should be easy enough.
Currently the names are like:
haxe-3.1.3-linux32.tar.gz
haxe-3.1.3-linux64.tar.gz
haxe-3.1.3-osx-installer.pkg
haxe-3.1.3-osx.tar.gz
haxe-3.1.3-raspi.tar.gz
haxe-3.1.3-win.exe
haxe-3.1.3-win.zip
If we keep with this convention, then I could do:
@:route("/latest/$platformDownload")
public function doLatestStableDownload( platformDownload:String ) {
var currentVersion = apiSite.getCurrentVersion( versionRepo() );
var versionDir = currentVersion.replace( '.', ',' );
var file = 'haxe-$currentVersion-$platformDownload';
var directDownloadLink = '/${versionRepo()}/$versionDir/downloads/$file';
return new RedirectResult( directDownloadLink )
}
This would redirect:
/download/latest/win.exe
->/website-content/downloads/3,1,3/downloads/haxe-3.1.3-win.exe
/download/latest/osx-installer.pkg
->/website-content/downloads/3,1,3/downloads/haxe-3.1.3-osx-installer.pkg
etc.
Possible issues:
- We bypass the
/download/file/3.1.3/haxe-3.1.3-win.exe
page, which we were using so Google Analytics could pick up on the number of downloads. Not sure how to workaround this... We could track the numbers ourselves separate to the GA numbers, but then we don't get the pretty graphs. - If you ever stop offering a particular binary, eg "raspi.tar.gz", then
/latest/raspi.tar.gz
would 404, rather than find the latest version that did exist. We could work around this with a slightly more complex solution than the one proposed above.
from haxe.org.
I'm fine with keeping file name conventions. They are generated by the release helper script anyway: https://github.com/waneck/hxbuilds/blob/master/release-helper/src/Release.hx#L15
from haxe.org.
Does anyone know how we could support this? Maybe @kevinresol?
from haxe.org.
hm... I have zero knowledge about the site.
Needa take some time to read through the source, I can try to find some time for that.
But would be best if @jasononeil spend some short time on it.
from haxe.org.
We bypass the /download/file/3.1.3/haxe-3.1.3-win.exe page, which we were using so Google Analytics could pick up on the number of downloads.
I wonder if we can simply create the same page for latest
on which browser will auto start downloading the latest binary. Then we will have GA for hits on latest
. And since release dates are known we can sort out what the latest version is for each period.
from haxe.org.
If someone is going to look at this, then it might also be a good time to pick this up too #201 : using the github api as download provider. The github api also contains download count, each "assets"entry has a "download_count".
from haxe.org.
Stable html landing page with releases notes, links, ...
https://haxe.org/download/file/latest/haxe-latest-linux64.tar.gz/
Direct url
https://haxe.org/website-content/downloads/latest/downloads/haxe-latest-win.exe
from haxe.org.
Related Issues (20)
- Link to API docs leads to Error 404 page HOT 1
- Target tier list HOT 6
- Per-target score table HOT 1
- Use-case suggestion HOT 3
- Partners Update
- try.haxe.org still running Haxe 3.4.4 HOT 2
- Not obvious where to find release notes and changelog HOT 2
- Change "taste of Haxe" example to use module-level fields (not a class)
- move try.haxe.org domain HOT 1
- Community top navigation fix HOT 1
- No license (for this repo)
- Mobile showcase suggestion
- haxe unicode manual - page not found HOT 2
- Haxe 4.2.4 not "officially" released HOT 2
- TravisCI failure because of xenial and deadsnakes HOT 2
- I want translate this website to my language for free
- Link to Haxedevelop from editor and Ide overview is dead HOT 1
- Macros documentation page not displaying correctly in mobile browser
- The job page is out of date
- structInit with inherited super constructor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haxe.org.