-
Notifications
You must be signed in to change notification settings - Fork 492
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create UPM compliant packages in releases (#385)
* Enable UPM packages to be generated in releases * Travis OSX package should already contain zip package * Remove draft=true for releases deployment
- Loading branch information
1 parent
67eb55e
commit f92ce09
Showing
4 changed files
with
64 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -150,3 +150,6 @@ _pkginfo.txt | |
!*.[Cc]ache/ | ||
|
||
*.orig | ||
|
||
# Current_Package folder | ||
current-package/ |
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
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,41 @@ | ||
#! /bin/sh | ||
|
||
project_path=$(pwd)/UnityGLTF | ||
log_file=$(pwd)/build/unity-mac.log | ||
|
||
cached_folder=$(pwd) | ||
upm_name=org.khronos.UnityGLTF | ||
upm_src_folder_path=$(pwd)/UnityGLTF/Assets/UnityGLTF | ||
upm_manifest_path=$(pwd)/scripts/package.json | ||
upm_staging_path=$(pwd)/current-package/$upm_name | ||
upm_zip_export_path=$(pwd)/current-package/$upm_name.zip | ||
upm_targz_export_path=$(pwd)/current-package/$upm_name.tar.gz | ||
|
||
error_code=0 | ||
echo $upm_name | ||
echo $upm_src_folder_path | ||
echo $upm_manifest_path | ||
echo $upm_staging_path | ||
|
||
echo "Creating package folder" | ||
mkdir $upm_staging_path | ||
echo "Copying package.json" | ||
cp $upm_manifest_path $upm_staging_path | ||
|
||
echo "Copying package contents from $upm_src_folder_path" | ||
cp -r $upm_src_folder_path $upm_staging_path | ||
|
||
echo "Changing to $upm_staging_path folder" | ||
cd $upm_staging_path | ||
|
||
echo "Creating .zip of UPM package" | ||
sudo zip -r $upm_zip_export_path ./ | ||
|
||
echo "Creating .tar.gz of UPM package" | ||
tar -zcvf $upm_targz_export_path ./ | ||
|
||
echo "Changing back to original folder $cached_folder" | ||
cd $cached_folder | ||
|
||
echo "Finishing with code $error_code" | ||
exit $error_code |
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,15 @@ | ||
{ | ||
"name": "org.khronos.unitygltf", | ||
"displayName": "Khronos GLTF Loader", | ||
"version": "1.0.0", | ||
"unity": "2018.3", | ||
"description": "Unity3D library for importing and exporting GLTF 2.0 assets. https://github.com/KhronosGroup/UnityGLTF", | ||
"keywords": [ | ||
"gltf", | ||
"khronos", | ||
"runtime", | ||
"loader" | ||
], | ||
"author": "Khronos Group", | ||
"dependencies": {} | ||
} |