-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
|
||
} |