Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sbtn build process #5758

Closed
eed3si9n opened this issue Aug 15, 2020 · 5 comments
Closed

sbtn build process #5758

eed3si9n opened this issue Aug 15, 2020 · 5 comments
Labels
area/sbtn thin client issues Bug

Comments

@eed3si9n
Copy link
Member

eed3si9n commented Aug 15, 2020

AppVeyor is setup to build native image.

If you push a branch named build-graal, AppVeyor would start a build and with "artifact"

VER=1.4.0-M1-5cf8e9f65e
MAC_URL=https://ci.appveyor.com/api/buildjobs/a0hkavuv8t4qi46b/artifacts/client%2Ftarget%2Fbin%2Fsbtn
LINUX_URL=https://ci.appveyor.com/api/buildjobs/hhj31jkk05y4aby5/artifacts/client%2Ftarget%2Fbin%2Fsbtn
WINDOWS_URL=https://ci.appveyor.com/api/buildjobs/k879pa12wcys12cp/artifacts/client%2Ftarget%2Fbin%2Fsbtn.exe

cd /tmp
mkdir sbtn
cd sbtn
mkdir darwin-amd64
mkdir linux-amd64
mkdir windows-amd64

curl -L $MAC_URL > darwin-amd64/sbtn
curl -L $LINUX_URL > linux-amd64/sbtn
curl -L $WINDOWS_URL > windows-amd64/sbtn.exe

cd darwin-amd64
chmod +x sbtn
tar czvf sbtn-darwin-amd64-$VER.tar.gz sbtn
mv sbtn-darwin-amd64-$VER.tar.gz ../
cd ../
gpg -u 0x642ac823 --detach-sign --armor sbtn-darwin-amd64-$VER.tar.gz

cd linux-amd64
chmod +x sbtn
tar czvf sbtn-linux-amd64-$VER.tar.gz sbtn
mv sbtn-linux-amd64-$VER.tar.gz ../
cd ../
gpg -u 0x642ac823 --detach-sign --armor sbtn-linux-amd64-$VER.tar.gz

cd windows-amd64
zip sbtn-windows-amd64-$VER.zip sbtn.exe
mv sbtn-windows-amd64-$VER.zip ../
cd ../
gpg -u 0x642ac823 --detach-sign --armor sbtn-windows-amd64-$VER.zip

Created files were uploaded manually to https://github.com/sbt/sbtn-dist/releases/tag/v1.4.0-M1-5cf8e9f65e.

@eed3si9n eed3si9n added the Bug label Aug 15, 2020
@eed3si9n
Copy link
Member Author

eed3si9n commented Aug 15, 2020

We have a permanent URL this way, and we can re-upload this to Maven Central too.

@eed3si9n
Copy link
Member Author

eed3si9n commented Aug 15, 2020

@eatkins If these will be eventually included into the universal download like https://www.scala-sbt.org/download.html, then maybe we don't have to worry about putting them on to Maven Central for now.

On the other hand, if we want to create a universal installer, then we would need a universal `sbtn` script to distinguish between the sbtn's. (I guess that topic should be discussed in existing https://github.com//issues/5665)

@eed3si9n eed3si9n added the area/sbtn thin client issues label Aug 15, 2020
@eatkins
Copy link
Contributor

eatkins commented Aug 15, 2020

Looks good to me.

@eed3si9n
Copy link
Member Author

eed3si9n commented Aug 17, 2020

@eed3si9n
Copy link
Member Author

eed3si9n commented Sep 23, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/sbtn thin client issues Bug
Projects
None yet
Development

No branches or pull requests

2 participants