update all mattermost plugins

Signed-off-by: webbuilder_pel7ppc64lebuilder0 <webbuilder@powerel.org>
master
webbuilder_pel7ppc64lebuilder0 2021-04-27 11:10:08 +02:00
parent 0e3271093f
commit 57c72b0092
5 changed files with 17 additions and 6 deletions

View File

@ -40,18 +40,20 @@ go build -o plugin.exe ./server
%install
mkdir -p %{buildroot}%{mattermost_home}/plugins/jitsi/{server,webapp}
cp -rv src/github.com/mattermost/mattermost-plugin-jitsi/plugin.json %{buildroot}%{mattermost_home}/plugins/jitsi/
sed 's/"executables": {/"executables": { "server\/plugin.exe"/' -i %{buildroot}%{mattermost_home}/plugins/jitsi/plugin.json
sed 's/"executables": {/"executables": { "linux-%{_arch}": "server\/plugin.exe"/' -i %{buildroot}%{mattermost_home}/plugins/jitsi/plugin.json
sed '/"darwin-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/jitsi/plugin.json
sed '/"linux-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/jitsi/plugin.json
sed '/"windows-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/jitsi/plugin.json
cp -rv src/github.com/mattermost/mattermost-plugin-jitsi/plugin.exe %{buildroot}%{mattermost_home}/plugins/jitsi/server/
cp -rv src/github.com/mattermost/mattermost-plugin-jitsi/webapp/dist/ %{buildroot}%{mattermost_home}/plugins/jitsi/webapp/
cp -rv src/github.com/mattermost/mattermost-plugin-jitsi/assets/ %{buildroot}%{mattermost_home}/plugins/jitsi/


%files
%{mattermost_home}/plugins/jitsi/plugin.json
%{mattermost_home}/plugins/jitsi/server/plugin.exe
%{mattermost_home}/plugins/jitsi/webapp/dist/main.js
%{mattermost_home}/plugins/jitsi/assets/


%changelog

View File

@ -43,18 +43,21 @@ popd
%install
mkdir -p %{buildroot}%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/{server,webapp}
cp -rv src/github.com/matterpoll/matterpoll/plugin.json %{buildroot}%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/
sed 's/"executables": {/"executables": { "server\/plugin.exe"/' -i %{buildroot}%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/plugin.json
sed 's/"executables": {/"executable": "server\/plugin.exe"/' -i %{buildroot}%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/plugin.json
sed '/"darwin-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/plugin.json
sed '/"linux-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/plugin.json
sed '/"windows-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/plugin.json
sed '/\t },"/d' -i %{buildroot}%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/plugin.json
cp -rv src/github.com/matterpoll/matterpoll/plugin.exe %{buildroot}%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/server/
cp -rv src/github.com/matterpoll/matterpoll/webapp/dist/ %{buildroot}%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/webapp/
cp -rv src/github.com/matterpoll/matterpoll/assets/ %{buildroot}%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/


%files
%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/plugin.json
%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/server/plugin.exe
%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/webapp/dist/main.js
%{mattermost_home}/plugins/com.github.matterpoll.matterpoll/assets/


%changelog

View File

@ -36,10 +36,11 @@ go build -o plugin.exe ./server
%install
mkdir -p %{buildroot}%{mattermost_home}/plugins/memes/server/
cp -rv src/github.com/mattermost/mattermost-plugin-memes/plugin.json %{buildroot}%{mattermost_home}/plugins/memes/
sed 's/"executables": {/"executables": { "server\/plugin.exe"/' -i %{buildroot}%{mattermost_home}/plugins/memes/plugin.json
sed 's/"executables": {/"executables": { "linux-ppc64le": "server\/plugin.exe"/' -i %{buildroot}%{mattermost_home}/plugins/memes/plugin.json
sed '/"darwin-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/memes/plugin.json
sed '/"linux-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/memes/plugin.json
sed '/"windows-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/memes/plugin.json
sed '/"executable": /d' -i %{buildroot}%{mattermost_home}/plugins/memes/plugin.json
cp -rv src/github.com/mattermost/mattermost-plugin-memes/plugin.exe %{buildroot}%{mattermost_home}/plugins/memes/server/



View File

@ -41,16 +41,18 @@ go build -o plugin.exe ./server
%install
mkdir -p %{buildroot}%{mattermost_home}/plugins/com.github.scottleedavis.mattermost-plugin-remind/{server,webapp}
cp -rv src/github.com/scottleedavis/mattermost-plugin-remind/plugin.json %{buildroot}%{mattermost_home}/plugins/com.github.scottleedavis.mattermost-plugin-remind/
sed 's/"executables": {/"executables": { "server\/plugin.exe"/' -i %{buildroot}%{mattermost_home}/plugins/com.github.scottleedavis.mattermost-plugin-remind/plugin.json
sed 's/"executables": {/"executable": "server\/plugin.exe"/' -i %{buildroot}%{mattermost_home}/plugins/com.github.scottleedavis.mattermost-plugin-remind/plugin.json
sed '/"darwin-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/com.github.scottleedavis.mattermost-plugin-remind/plugin.json
sed '/"linux-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/com.github.scottleedavis.mattermost-plugin-remind/plugin.json
sed '/"windows-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/com.github.scottleedavis.mattermost-plugin-remind/plugin.json
cp -rv src/github.com/scottleedavis/mattermost-plugin-remind/plugin.exe %{buildroot}%{mattermost_home}/plugins/com.github.scottleedavis.mattermost-plugin-remind/server/
cp -rv src/github.com/scottleedavis/mattermost-plugin-remind/assets %{buildroot}%{mattermost_home}/plugins/com.github.scottleedavis.mattermost-plugin-remind/


%files
%{mattermost_home}/plugins/com.github.scottleedavis.mattermost-plugin-remind/plugin.json
%{mattermost_home}/plugins/com.github.scottleedavis.mattermost-plugin-remind/server/plugin.exe
%{mattermost_home}/plugins/com.github.scottleedavis.mattermost-plugin-remind/assets/


%changelog

View File

@ -45,13 +45,16 @@ sed '/"darwin-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/zoom/plugin.js
sed '/"linux-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/zoom/plugin.json
sed '/"windows-amd64"/d' -i %{buildroot}%{mattermost_home}/plugins/zoom/plugin.json
cp -rv src/github.com/mattermost/mattermost-plugin-zoom/plugin.exe %{buildroot}%{mattermost_home}/plugins/zoom/server/
cp -rv src/github.com/mattermost/mattermost-plugin-zoom/webapp/dist/main.js %{buildroot}%{mattermost_home}/plugins/zoom/webapp/
mkdir -p %{buildroot}%{mattermost_home}/plugins/zoom/webapp/dist/
cp -rv src/github.com/mattermost/mattermost-plugin-zoom/webapp/dist/main.js %{buildroot}%{mattermost_home}/plugins/zoom/webapp/dist/
cp -rv src/github.com/mattermost/mattermost-plugin-zoom/assets/ %{buildroot}%{mattermost_home}/plugins/zoom/


%files
%{mattermost_home}/plugins/zoom/plugin.json
%{mattermost_home}/plugins/zoom/server/plugin.exe
%{mattermost_home}/plugins/zoom/webapp/main.js
%{mattermost_home}/plugins/zoom/webapp/dist/main.js
%{mattermost_home}/plugins/zoom/assets/


%changelog