Skip to content

Commit 4d12657

Browse files
committed
Add release script
1 parent 8880e9a commit 4d12657

File tree

2 files changed

+51
-3
lines changed

2 files changed

+51
-3
lines changed

README.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,23 @@ The easiest way to install is using [Package Control](https://packagecontrol.io)
1717
2. Choose `Package Control: Install Package`
1818
3. Find `CoffeeScript` and hit <kbd>Enter</kbd>
1919

20-
## Source Control
20+
### Manual Install
21+
22+
1. Download appropriate [CoffeeScript.sublime-package](https://github.com/SublimeText/CoffeeScript/releases) for your Sublime Text build.
23+
2. Copy it into _Installed Packages_ directory
24+
25+
> [!NOTE]
26+
>
27+
> To find _Installed Packages_...
28+
>
29+
> 1. call _Menu > Preferences > Browse Packages.._
30+
> 2. Navigate to parent folder
31+
32+
> [!WARNING]
33+
>
34+
> Manually installed packages are not automatically updated by Package Control.
35+
36+
### Source Control
2137

2238
> [!TIP]
2339
>
@@ -31,7 +47,7 @@ Mac: ~/Library/Application\ Support/Sublime\ Text/Packages
3147
Win: %APPDATA%\Sublime Text\Packages
3248
```
3349

34-
### As a repository within the packages directory
50+
#### As a repository within the packages directory
3551

3652
Open a Terminal/Console and run the following commands, replacing `PACKAGE_PATH` with the path corresponding to your OS above.
3753

@@ -40,7 +56,7 @@ cd PACKAGE_PATH
4056
git clone https://github.com/SublimeText/BetterCoffeeScript.git "CoffeeScript"
4157
```
4258

43-
### As a repository outside of the packages directory
59+
#### As a repository outside of the packages directory
4460

4561
If you use Github for Mac/Windows which store repositories in a specific location, or if you just don't want a repository in your packages directory, then instead you can use a link.
4662

make.cmd

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
@echo off
2+
setlocal
3+
chcp 65001 >nul
4+
pushd %~dp0
5+
6+
if /i "%1" == "release" goto RELEASE
7+
goto :usage
8+
9+
:RELEASE
10+
if "%2"== "" goto :usage
11+
12+
for %%d in ("%~dp0.") do set package=%%~nxd
13+
14+
echo Createing assets for "%package%"...
15+
16+
set build=4143
17+
set archive=%package%.sublime-package
18+
call git archive --format zip -o "%archive%" master
19+
20+
:: create the release
21+
gh release create --target master -t "v%2" "%build%-%2" *.sublime-package
22+
del /f /q *.sublime-package
23+
git fetch
24+
goto :eof
25+
26+
:USAGE
27+
echo USAGE:
28+
echo.
29+
echo make ^[release^]
30+
echo.
31+
echo release ^<semver^> -- create and publish a release (e.g. 1.2.3)
32+
goto :eof

0 commit comments

Comments
 (0)