Skip to content

Commit 49d5a1c

Browse files
committed
4.1.1 release
1 parent ae3ae84 commit 49d5a1c

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

misc/kscript_release.sh

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ cd $KSCRIPT_HOME
3030
## compile binary distribution (including jar and wrapper-script)
3131
mkdir -p $KSCRIPT_ARCHIVE/kscript-${kscript_version}/bin
3232
cp ${KSCRIPT_HOME}/build/libs/kscript ${KSCRIPT_ARCHIVE}/kscript-${kscript_version}/bin
33+
cp ${KSCRIPT_HOME}/build/libs/kscript.bat ${KSCRIPT_ARCHIVE}/kscript-${kscript_version}/bin
3334
cp ${KSCRIPT_HOME}/build/libs/kscript.jar ${KSCRIPT_ARCHIVE}/kscript-${kscript_version}/bin/kscript.jar
3435

3536
cd ${KSCRIPT_ARCHIVE}
@@ -91,7 +92,7 @@ github-release release \
9192
--repo kscript \
9293
--tag "v${kscript_version}" \
9394
--name "v${kscript_version}" \
94-
--description "See [NEWS.md](https://github.com/holgerbrandl/kscript/blob/master/NEWS.md) for changes."
95+
--description "See [NEWS.md](https://github.com/kscripting/kscript/blob/master/NEWS.md) for changes."
9596
# \
9697
# --pre-release
9798

@@ -112,7 +113,7 @@ github-release upload \
112113

113114
cd $KSCRIPT_HOME && rm -rf kscript_releases_*
114115

115-
git clone https://github.com/holgerbrandl/kscript kscript_releases_${kscript_version}
116+
git clone https://github.com/kscripting/kscript kscript_releases_${kscript_version}
116117
cd kscript_releases_${kscript_version}
117118

118119
git config user.email "holgerbrandl@users.noreply.github.com"
@@ -136,7 +137,7 @@ git commit -m "v${kscript_version} release"
136137
git push origin releases
137138

138139
## test the updated version pointer
139-
curl https://raw.githubusercontent.com/holgerbrandl/kscript/releases/kscript
140+
curl https://raw.githubusercontent.com/kscripting/kscript/releases/kscript
140141

141142
########################################################################
142143
### release on sdkman
@@ -153,7 +154,7 @@ echo ${SDKMAN_CONSUMER_KEY} ${SDKMAN_CONSUMER_TOKEN} ${kscript_version}
153154

154155
## test the binary download
155156
#cd ~/Desktop
156-
#wget https://github.com/holgerbrandl/kscript/releases/download/v${kscript_version}/kscript-${kscript_version}-bin.zip
157+
#wget https://github.com/kscripting/kscript/releases/download/v${kscript_version}/kscript-${kscript_version}-bin.zip
157158
#unzip kscript-${kscript_version}-bin.zip
158159

159160
#kscript_version=1.5.1
@@ -163,7 +164,7 @@ curl -X POST \
163164
-H "Consumer-Token: ${SDKMAN_CONSUMER_TOKEN}" \
164165
-H "Content-Type: application/json" \
165166
-H "Accept: application/json" \
166-
-d '{"candidate": "kscript", "version": "'${kscript_version}'", "url": "https://github.com/holgerbrandl/kscript/releases/download/v'${kscript_version}'/kscript-'${kscript_version}'-bin.zip"}' \
167+
-d '{"candidate": "kscript", "version": "'${kscript_version}'", "url": "https://github.com/kscripting/kscript/releases/download/v'${kscript_version}'/kscript-'${kscript_version}'-bin.zip"}' \
167168
https://vendors.sdkman.io/release
168169

169170

@@ -188,7 +189,7 @@ curl -X POST \
188189

189190

190191
########################################################################
191-
### Update the homebrew descriptor (see https://github.com/holgerbrandl/kscript/issues/50)
192+
### Update the homebrew descriptor (see https://github.com/kscripting/kscript/issues/50)
192193

193194
cd $KSCRIPT_HOME && rm -rf homebrew-tap
194195
git clone https://github.com/holgerbrandl/homebrew-tap.git
@@ -201,8 +202,8 @@ archiveMd5=$(shasum -a 256 ${KSCRIPT_ARCHIVE}/kscript-${kscript_version}.zip | c
201202
cat - <<EOF > kscript.rb
202203
class Kscript < Formula
203204
desc "kscript"
204-
homepage "https://github.com/holgerbrandl/kscript"
205-
url "https://github.com/holgerbrandl/kscript/releases/download/v${kscript_version}/kscript-${kscript_version}-bin.zip"
205+
homepage "https://github.com/kscripting/kscript"
206+
url "https://github.com/kscripting/kscript/releases/download/v${kscript_version}/kscript-${kscript_version}-bin.zip"
206207
sha256 "${archiveMd5}"
207208
208209
depends_on "kotlin"
@@ -225,7 +226,7 @@ git push #origin releases
225226

226227

227228
########################################################################
228-
### Update the archlinux package (see https://aur.archlinux.org/packages/kscript/ and https://github.com/holgerbrandl/kscript/pull/216/)
229+
### Update the archlinux package (see https://aur.archlinux.org/packages/kscript/ and https://github.com/kscripting/kscript/pull/216/)
229230

230231
cd $KSCRIPT_HOME && rm -rf archlinux
231232

@@ -237,14 +238,14 @@ cd archlinux
237238

238239
#update the PKGBUILD file/pkgver variable
239240
cat - <<EOF > PKGBUILD
240-
# Maintainer: Holger Brandl https://github.com/holgerbrandl/kscript/
241+
# Maintainer: Holger Brandl https://github.com/kscripting/kscript/
241242
242243
pkgname=kscript
243244
pkgver=${kscript_version}
244245
pkgrel=1
245246
pkgdesc='Enhanced scripting support for Kotlin on *nix-based systems'
246247
arch=('any')
247-
url='https://github.com/holgerbrandl/kscript'
248+
url='https://github.com/kscripting/kscript'
248249
license=('MIT')
249250
depends=('kotlin')
250251
source=("\${pkgname}-\${pkgver}-bin.zip::https://github.com/holgerbrandl/\${pkgname}/releases/download/v\${pkgver}/\${pkgname}-\${pkgver}-bin.zip")
@@ -265,11 +266,11 @@ pkgbase = kscript
265266
pkgdesc = Enhanced scripting support for Kotlin on *nix-based systems
266267
pkgver = ${kscript_version}
267268
pkgrel = 1
268-
url = https://github.com/holgerbrandl/kscript
269+
url = https://github.com/kscripting/kscript
269270
arch = any
270271
license = MIT
271272
depends = kotlin
272-
source = kscript-${kscript_version}.bin.zip::https://github.com/holgerbrandl/kscript/releases/download/v${kscript_version}/kscript-${kscript_version}-bin.zip
273+
source = kscript-${kscript_version}.bin.zip::https://github.com/kscripting/kscript/releases/download/v${kscript_version}/kscript-${kscript_version}-bin.zip
273274
sha256sums = ${archiveMd5}
274275
275276
pkgname = kscript
@@ -293,13 +294,13 @@ docker rmi kscript
293294

294295
docker build --build-arg KSCRIPT_VERSION=${kscript_version} -t kscript misc
295296

296-
docker tag kscript holgerbrandl/kscript:${kscript_version}
297+
docker tag kscript kscripting/kscript:${kscript_version}
297298

298299
docker login
299300

300301
#https://stackoverflow.com/questions/41984399/denied-requested-access-to-the-resource-is-denied-docker
301-
docker push holgerbrandl/kscript:${kscript_version}
302+
docker push kscripting/kscript:${kscript_version}
302303

303304
## create latest tag
304-
docker tag kscript holgerbrandl/kscript
305-
docker push holgerbrandl/kscript
305+
docker tag kscript kscripting/kscript
306+
docker push kscripting/kscript

src/main/kotlin/kscript/app/Kscript.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import org.docopt.DocOptWrapper
1818
* @author Marcin Kuszczak
1919
*/
2020

21-
const val KSCRIPT_VERSION = "4.1.0"
21+
const val KSCRIPT_VERSION = "4.1.1"
2222

2323
fun main(args: Array<String>) {
2424
try {

0 commit comments

Comments
 (0)