@@ -19,20 +19,53 @@ git fetch deploy
19
19
# Get Box and build
20
20
wget https://github.com/box-project/box2/releases/download/2.7.0/box-2.7.0.phar -O ./bin/box.phar
21
21
chmod a+x ./bin/box.phar
22
- ./bin/box.phar build -vv
23
22
24
- # To allow checkout gh-pages branch
23
+ # Unsigned build
24
+ ./bin/box.phar build -vv
25
25
mv jupyter-php-installer.phar jupyter-php-installer.phar.tmp
26
- mv jupyter-php-installer.phar.pubkey jupyter-php-installer.phar.pubkey.tmp
26
+
27
+ # Signed build
28
+ ./bin/box.phar build -c box.signed.json -vv
29
+ mv jupyter-php-installer.phar jupyter-php-installer.signed.phar.tmp
30
+ mv jupyter-php-installer.phar.pubkey jupyter-php-installer.signed.phar.pubkey.tmp
27
31
28
32
# Checkout gh-pages and add PHAR file and version:
29
33
git checkout -b gh-pages deploy/gh-pages
30
34
35
+ # Moving unsigned build
31
36
mv jupyter-php-installer.phar.tmp dist/jupyter-php-installer.phar
32
- mv jupyter-php-installer.phar.pubkey.tmp dist/jupyter-php-installer.phar.pubkey
37
+ cd dist && md5sum jupyter-php-installer.phar > jupyter-php-installer.phar.md5 && cd ..
38
+ cd dist && sha1sum jupyter-php-installer.phar > jupyter-php-installer.phar.sha1 && cd ..
39
+ cd dist && sha256sum jupyter-php-installer.phar > jupyter-php-installer.phar.sha256 && cd ..
40
+ cd dist && sha512sum jupyter-php-installer.phar > jupyter-php-installer.phar.sha512 && cd ..
41
+
42
+ # Moving signed build
43
+ mv jupyter-php-installer.signed.phar.tmp dist/jupyter-php-installer.signed.phar
44
+ mv jupyter-php-installer.signed.phar.pubkey.tmp dist/jupyter-php-installer.signed.phar.pubkey
45
+ cd dist && md5sum jupyter-php-installer.signed.phar > jupyter-php-installer.signed.phar.md5 && cd ..
46
+ cd dist && sha1sum jupyter-php-installer.signed.phar > jupyter-php-installer.signed.phar.sha1 && cd ..
47
+ cd dist && sha256sum jupyter-php-installer.signed.phar > jupyter-php-installer.signed.phar.sha256 && cd ..
48
+ cd dist && sha512sum jupyter-php-installer.signed.phar > jupyter-php-installer.signed.phar.sha512 && cd ..
49
+ cd dist && md5sum jupyter-php-installer.signed.phar.pubkey > jupyter-php-installer.signed.phar.pubkey.md5 && cd ..
50
+ cd dist && sha1sum jupyter-php-installer.signed.phar.pubkey > jupyter-php-installer.signed.phar.pubkey.sha1 && cd ..
51
+ cd dist && sha256sum jupyter-php-installer.signed.phar.pubkey > jupyter-php-installer.signed.phar.pubkey.sha256 && cd ..
52
+ cd dist && sha512sum jupyter-php-installer.signed.phar.pubkey > jupyter-php-installer.signed.phar.pubkey.sha512 && cd ..
53
+
54
+ # Adding phar files
55
+ git add dist/jupyter-php-installer.phar dist/jupyter-php-installer.signed.phar
56
+
57
+ # Adding public keys
58
+ git add dist/jupyter-php-installer.signed.phar.pubkey
59
+
60
+ # Adding "unsigned" checksums
61
+ git add dist/jupyter-php-installer.phar.md5 dist/jupyter-php-installer.phar.sha1 dist/jupyter-php-installer.phar.sha256 dist/jupyter-php-installer.phar.sha512
62
+
63
+ # Adding "signed" checksums
64
+ git add dist/jupyter-php-installer.signed.phar.md5 dist/jupyter-php-installer.signed.phar.sha1 dist/jupyter-php-installer.signed.phar.sha256 dist/jupyter-php-installer.signed.phar.sha512
65
+
66
+ # Adding public key checksums
67
+ git add dist/jupyter-php-installer.signed.phar.pubkey.md5 dist/jupyter-php-installer.signed.phar.pubkey.sha1 dist/jupyter-php-installer.signed.phar.pubkey.sha256 dist/jupyter-php-installer.signed.phar.pubkey.sha512
33
68
34
- sha1sum dist/jupyter-php-installer.phar > dist/jupyter-php-installer.phar.version
35
- git add dist/jupyter-php-installer.phar dist/jupyter-php-installer.phar.version dist/jupyter-php-installer.phar.pubkey
36
69
37
70
# Commit and push:
38
71
git commit -m ' Rebuilt phar'
0 commit comments