File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change 2323 exit 1
2424fi
2525
26+ # Ensure dependencies are up-to-date
27+ offenbach install --no-dev --no-interaction --optimize-autoloader
28+
29+ # Update version in main application bootstrap file
2630sed -i " s/\$ VERSION *=.*/\$ VERSION = '$version ';/" $main
2731
28- php -dphar.readonly=0 bin/compile.php -d src:php -d vendor:php -e $main -o $phar -b .banner -m license:MIT -m author:yannoff -m copyright:yannoff
32+ args=()
33+
34+ # Add src/ & vendor/ as source directories
35+ args+=(--dir src:php)
36+ args+=(--dir vendor:php)
37+
38+ # Set bootstrap & output properties
39+ args+=(--main $main )
40+ args+=(--output $phar )
41+
42+ # Set the legal banner file
43+ args+=(--banner .banner)
44+
45+ # Add archive metadata properties
46+ args+=(--meta license:MIT)
47+ args+=(--meta author:yannoff)
48+ args+=(--meta copyright:yannoff)
49+
50+ php -dphar.readonly=0 bin/compile.php " ${args[@]} "
You can’t perform that action at this time.
0 commit comments