Skip to content

Commit

Permalink
[fix] Specify project version for composer
Browse files Browse the repository at this point in the history
Fixes #111
  • Loading branch information
tituspijean committed Dec 3, 2018
1 parent 33e7d38 commit ed1283a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions scripts/_common.sh
@@ -1,4 +1,5 @@
# Version numbers
project_version="0.1.0-beta.7"
flarum_version="0.1.0-beta.7.2"
ssowat_ext_ver="0.6"

Expand Down
3 changes: 2 additions & 1 deletion scripts/install
Expand Up @@ -69,6 +69,7 @@ ynh_app_setting_set $app admin $admin
ynh_app_setting_set $app is_public $is_public
ynh_app_setting_set $app language $language
ynh_app_setting_set $app final_path $final_path
ynh_app_setting_set $app project_version $project_version
ynh_app_setting_set $app flarum_version $flarum_version
ynh_app_setting_set $app ssowat_ext_ver $ssowat_ext_ver
ynh_app_setting_set $app bazaar_extension $bazaar_extension
Expand Down Expand Up @@ -103,7 +104,7 @@ sudo chmod -R 0775 $tmp
# Install Flarum
ynh_print_info "Composer is installing Flarum and its dependencies. It may take a while..."
# First, create the project with core and all basic extensions
exec_composer $app $final_path "create-project flarum/flarum $tmp --stability=beta --ansi -d $tmp"
exec_composer $app $final_path "create-project flarum/flarum=$project_version $tmp --stability=beta --ansi -d $tmp"
# Let's fix the core version by explicitely requiring it
exec_composer $app $final_path "require flarum/core:$flarum_version -n --ansi -d $tmp"

Expand Down

0 comments on commit ed1283a

Please sign in to comment.