Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Commit 827befd

Browse files
committed
Create simple build script
1 parent 18107b0 commit 827befd

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

box.json

-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
"vendor",
55
"config"
66
],
7-
"files": [
8-
"composer.json"
9-
],
107
"main": "shift-cli",
118
"output": "builds/shift-cli",
129
"compression": "GZ",

build.sh

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env sh
2+
3+
# This script builds the PHAR using Box.
4+
# It copies over the Composer files to
5+
# avoid any assumed references by Box.
6+
#
7+
# Assumes Box is installed globally.
8+
9+
mv composer-dev.json composer.json
10+
rm -rf vendor composer.lock
11+
composer update --no-dev
12+
box compile --no-parallel
13+
git add builds/shift-cli
14+
git commit -m "Build PHAR"
15+
git push origin HEAD
16+
git checkout .

0 commit comments

Comments
 (0)