Skip to content

Commit

Permalink
Added selfie installer config
Browse files Browse the repository at this point in the history
  • Loading branch information
noccy80 committed Dec 30, 2016
1 parent 46fae62 commit 043341a
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions selfie.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
package "PHPL PowerLine" {

output "setup-phpl.run";

res "app.name" "PHPL PowerLine";
res "app.version" "v0.x";

destination "~/.phpl";

screen "welcome" type="message" entry=true {
title "Welcome to the %{app.name} %{app.version} installer";
text "@{isdata:MESSAGE}";
next "license";
}
screen "license" type="license" {
title "Open Source License";
license "GNU GPL v3 or later";
text "@{isdata:LICENSE}";
next "select";
back "welcome";
}
screen "select" type="list" {
title "Configure shell";
text "If you would like to automatically configure your shell, please select the one you are using:";
item "bash" "Automatically configure Bash" default=true groups="conf.bash";
item "fish" "Automatically configure Fish" default=false groups="conf.fish";
back "license";
}

bundle "isdata" {
file "LICENSE" src="LICENSE";
file "MESSAGE" src="share/INSTALLER.md";
}
bundle "app" default=true {
file "bin/phpl-config";
file "bin/phpl-reload";
file "bin/phpl-generate";
directory "lib";
install "*" target="%{destination}";
}
bundle "modules" default=true {
directory "modules";
install "*" target="%{destination}" overwrite="all";
}
bundle "themes" default=true {
directory "themes";
install "*" target="%{destination}" overwrite="all";
}
bundle "conf.bash" {
file "powerline.bash" src="share/";
file "setup-bash.sh" src="share/";
script "setup-bash.sh";
}
bundle "conf.fish" {
file "powerline.fish" src="share/";
file "setup-fish.sh" src="share/";
script "setup-fish.sh";
}

exec when="after" "%{destination}/bin/phpl-config" "--reload" "--all";

}

0 comments on commit 043341a

Please sign in to comment.