Skip to content

Commit

Permalink
CICD: Fix package creator
Browse files Browse the repository at this point in the history
PATCH
  • Loading branch information
Saverio976 committed Sep 24, 2023
1 parent d456205 commit b2b0a96
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
9 changes: 9 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) 2023 X-L-R-G-B

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3 changes: 3 additions & 0 deletions scripts/bundle-linux.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
# Run cpack

set -ex

cmake -S . -B build

cd build || exit 14
Expand All @@ -17,6 +19,7 @@ cp -r src bundle
cp -r deps bundle
cp -r CMakeLists.txt bundle
cp -r LICENSE.txt bundle
cp -r LICENSE bundle
cp -r README.md bundle

tar -cvf r-type-linux.tar bundle
5 changes: 4 additions & 1 deletion scripts/bundle-macos.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/bin/bash
# Run cpack

set -ex

cmake -S . -B build

cd build || exit 14

cpack --config CPackConfig.cmake -G OSXX11
cpack --config CPackConfig.cmake -G DragNDrop

cd ..

Expand All @@ -17,6 +19,7 @@ cp -r src bundle
cp -r deps bundle
cp -r CMakeLists.txt bundle
cp -r LICENSE.txt bundle
cp -r LICENSE bundle
cp -r README.md bundle

zip -r -9 r-type-macos.zip bundle
1 change: 1 addition & 0 deletions scripts/bundle-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Copy-Item src bundle -Recurse -Force
Copy-Item deps bundle -Recurse -Force
Copy-Item CMakeLists.txt bundle -Recurse -Force
Copy-Item LICENSE bundle -Recurse -Force
Copy-Item LICENSE.txt bundle -Recurse -Force
Copy-Item README.md bundle -Recurse -Force

Compress-Archive -Path bundle -DestinationPath r-type-windows.zip

0 comments on commit b2b0a96

Please sign in to comment.