Sublime Forum

Auto link to latest build?

#1

I am currently making a install script to setup a my environment on multiple machines.
What I am aiming to do is to install sublime text in the middle of it, and I d like to automatically install the latest build. However, I couldn’t find a link resolving to it.

While I can use https://download.sublimetext.com/sublime_text_3_build_3126_x64.tar.bz2 temporarily, it would be out of date at the next build. Would it be possible to make something like https://download.sublimetext.com/sublime_text_3_latest_build_x64.tar.bz2 that would redirect on whatever is the latest link?

Also, is it possible to register from the command line? So I don’t have to manually register it afterward?

0 Likes

#2
3 Likes

#3

by register you mean enter license key?

0 Likes

#4

That question answer my first part perfectly, thanks a lot. I should search deeper next time before asking.

Yes, by register I mean entering the license key, the machines will only be used by me (at least the account where ST3 will be installed on).

0 Likes

#5

You can save a textual version of your license key as ~/.config/sublime-text-3/Local/License.sublime_license to enter the license information to do something like this.

The file should have the format:

----- BEGIN LICENSE -----
Your Name
Single User License
0000-0000000
00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000
------ END LICENSE ------

1 Like

That license key doesn't appear to be valid