Toby Chui 1 жил өмнө
parent
commit
e31844ec45
3 өөрчлөгдсөн 31 нэмэгдсэн , 3 устгасан
  1. 1 0
      .gitignore
  2. 1 3
      README.md
  3. 29 0
      release.sh

+ 1 - 0
.gitignore

@@ -74,3 +74,4 @@ launcher.exe
 web.tar.gz
 web.tar.gz
 __debug_bin.exe
 __debug_bin.exe
 coverage
 coverage
+release/*

+ 1 - 3
README.md

@@ -11,8 +11,6 @@ This README file is intended for developer only. If you are normal users, please
 - Do not change the sequence in the startup() function unless necessary
 - Do not change the sequence in the startup() function unless necessary
 - When in doubt, add startup flags (and use startup flag to disable experimental functions on startup)
 - When in doubt, add startup flags (and use startup flag to disable experimental functions on startup)
 
 
-
-
 ## Vendor Resources Overwrite
 ## Vendor Resources Overwrite
 
 
 If you want to overwrite vendor related resources in ArozOS 2.012 or above, create a folder in the system root named ```vendor-res``` and put the replacement files inside here. Here is a list of supported replacement resources files
 If you want to overwrite vendor related resources in ArozOS 2.012 or above, create a folder in the system root named ```vendor-res``` and put the replacement files inside here. Here is a list of supported replacement resources files
@@ -41,7 +39,7 @@ Since ArozOS v2.000, we added File System Abstraction (fsa, or sometime as seen
 
 
 The ArOZ AJGI / AGI interface provide a JavaScript programmable interface for ArozOS users to create 
 The ArOZ AJGI / AGI interface provide a JavaScript programmable interface for ArozOS users to create 
 plugin for the system. To initiate the module, you can place a "init.agi" file in the web directory of the module
 plugin for the system. To initiate the module, you can place a "init.agi" file in the web directory of the module
-(also named the module root). See more details in the [AJGI Documentation](AJGI Documentation.md).
+(also named the module root). See more details in the `agi-doc.md`
 
 
 AGI script can be run as different scope and permissions. 
 AGI script can be run as different scope and permissions. 
 
 

+ 29 - 0
release.sh

@@ -0,0 +1,29 @@
+#/bin/bash
+make
+
+#Remove old release folder
+rm -rf ./release
+
+#Now everything shd be coped to dist
+#Extract things useful to release
+mkdir ./release
+mkdir ./release/src
+tar -xvf "./dist/web.tar.gz" -C "./release/src"
+
+
+#Move all go files to src
+cp *.go "./release/src/"
+cp -r "./mod" "./release/src"
+cp "./go.mod" "./release/src/go.mod" 
+cp "./go.sum" "./release/src/go.sum" 
+
+#Other required files
+cp "./localhost.crt" "./release/src/localhost.crt"
+cp "./localhost.key" "./release/src/localhost.key"
+cp "./Makefile" "./release/src/Makefile"
+
+
+#Finally move README.md to src
+cp "./agi-doc.md" "./release/src/agi-doc.md" 
+cp "./README.md" "./release/src/README.md" 
+