Browse Source

mattermost-plugin-voice update webapp install

Signed-off-by: webbuilder_pel7ppc64bebuilder0 <webbuilder@powerel.org>
master
webbuilder_pel7ppc64bebuilder0 5 years ago
parent
commit
c3d3106286
  1. 4
      SPECS/mattermost-plugin-voice.spec

4
SPECS/mattermost-plugin-voice.spec

@ -43,14 +43,14 @@ popd @@ -43,14 +43,14 @@ popd


%install
mkdir -p %{buildroot}%{mattermost_home}/plugins/voice/server/dist/
mkdir -p %{buildroot}%{mattermost_home}/plugins/voice/{server,webapp}/dist/
cp -rv src/github.com/mattermost/mattermost-plugin-voice/plugin.json %{buildroot}%{mattermost_home}/plugins/voice/
sed 's/"executables": {/"executables": { "server\/dist\/plugin.exe"/' -i %{buildroot}%{mattermost_home}/plugins/voice/plugin.json
sed '/"darwin-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/voice/plugin.json
sed '/"linux-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/voice/plugin.json
sed '/"windows-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/voice/plugin.json
cp -rv src/github.com/mattermost/mattermost-plugin-voice/plugin.exe %{buildroot}%{mattermost_home}/plugins/voice/server/dist/
cp -rv src/github.com/mattermost/mattermost-plugin-voice/webapp/dist/main.js %{buildroot}%{mattermost_home}/plugins/github/webapp/dist/
cp -rv src/github.com/mattermost/mattermost-plugin-voice/webapp/dist/main.js %{buildroot}%{mattermost_home}/plugins/voice/webapp/dist/


%files

Loading…
Cancel
Save