|
|
|
@ -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 |
|
|
|
|