@@ -12,7 +12,7 @@ public static string GetFrameRecorderRootPath()
1212 {
1313 return Application . dataPath + "/Recorder/" ;
1414 }
15-
15+ /*
1616 [MenuItem("Tools/Recorder/Generate Framework Package", false,100)]
1717 static void GeneratePackage()
1818 {
@@ -31,12 +31,18 @@ static void GeneratePackage()
3131 AssetDatabase.ExportPackage(files, destFile, ExportPackageOptions.Recurse);
3232 Debug.Log("Generated package: " + destFile);
3333 }
34-
34+ */
3535 [ MenuItem ( "Tools/Recorder/Generate Assetstore package" , false , 100 ) ]
3636 static void GenerateAssetStorePackage ( )
3737 {
38- var rootPath = FRPackagerPaths . GetFrameRecorderRootPath ( ) ;
39-
38+ var rootPath = FRPackagerPaths . GetRecorderRootPath ( ) ;
39+ var type = Type . GetType ( "UnityEditor.Recorder.MovieRecorderPackager" ) ;
40+ if ( type != null )
41+ {
42+ var method = type . GetMethod ( "GeneratePackage" ) ;
43+ method . Invoke ( null , null ) ;
44+ AssetDatabase . Refresh ( ) ;
45+ }
4046 UpdateVersion ( ) ;
4147
4248 var files = new [ ]
@@ -49,6 +55,7 @@ static void GenerateAssetStorePackage()
4955 Path . Combine ( rootPath , "Framework/Packager/Editor" ) ,
5056 Path . Combine ( rootPath , "Extensions/UTJ" ) ,
5157 Path . Combine ( rootPath , "Extensions/FCIntegration" ) ,
58+ Path . Combine ( rootPath , "Extensions/MovieRecorder/Packaging" ) ,
5259 } ;
5360 var destFile = k_PackageName + " " + RecorderVersion . Stage + " v" + RecorderVersion . Version + ".unitypackage" ;
5461 AssetDatabase . ExportPackage ( files , destFile , ExportPackageOptions . Recurse ) ;
@@ -57,7 +64,7 @@ static void GenerateAssetStorePackage()
5764
5865 static void UpdateVersion ( )
5966 {
60- var path = FRPackagerPaths . GetFrameRecorderVersionFilePath ( ) ;
67+ var path = FRPackagerPaths . GetRecorderVersionFilePath ( ) ;
6168 var script = File . ReadAllText ( path ) ;
6269
6370 var tag = "public const string Version = " ;
0 commit comments