@@ -12,7 +12,7 @@ public static string GetFrameRecorderRootPath()
12
12
{
13
13
return Application . dataPath + "/Recorder/" ;
14
14
}
15
-
15
+ /*
16
16
[MenuItem("Tools/Recorder/Generate Framework Package", false,100)]
17
17
static void GeneratePackage()
18
18
{
@@ -31,12 +31,18 @@ static void GeneratePackage()
31
31
AssetDatabase.ExportPackage(files, destFile, ExportPackageOptions.Recurse);
32
32
Debug.Log("Generated package: " + destFile);
33
33
}
34
-
34
+ */
35
35
[ MenuItem ( "Tools/Recorder/Generate Assetstore package" , false , 100 ) ]
36
36
static void GenerateAssetStorePackage ( )
37
37
{
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
+ }
40
46
UpdateVersion ( ) ;
41
47
42
48
var files = new [ ]
@@ -49,6 +55,7 @@ static void GenerateAssetStorePackage()
49
55
Path . Combine ( rootPath , "Framework/Packager/Editor" ) ,
50
56
Path . Combine ( rootPath , "Extensions/UTJ" ) ,
51
57
Path . Combine ( rootPath , "Extensions/FCIntegration" ) ,
58
+ Path . Combine ( rootPath , "Extensions/MovieRecorder/Packaging" ) ,
52
59
} ;
53
60
var destFile = k_PackageName + " " + RecorderVersion . Stage + " v" + RecorderVersion . Version + ".unitypackage" ;
54
61
AssetDatabase . ExportPackage ( files , destFile , ExportPackageOptions . Recurse ) ;
@@ -57,7 +64,7 @@ static void GenerateAssetStorePackage()
57
64
58
65
static void UpdateVersion ( )
59
66
{
60
- var path = FRPackagerPaths . GetFrameRecorderVersionFilePath ( ) ;
67
+ var path = FRPackagerPaths . GetRecorderVersionFilePath ( ) ;
61
68
var script = File . ReadAllText ( path ) ;
62
69
63
70
var tag = "public const string Version = " ;
0 commit comments