mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-11 18:13:52 +02:00
Adding build process to the linux app
This commit is contained in:
parent
ce77568bd9
commit
4cf814acd1
2
.gitignore
vendored
2
.gitignore
vendored
@ -42,3 +42,5 @@ octo*.db
|
||||
mac/temp
|
||||
mac/dist
|
||||
linux/octo-linux-app
|
||||
linux/dist
|
||||
linux/temp
|
||||
|
17
Makefile
17
Makefile
@ -1,4 +1,4 @@
|
||||
.PHONY: prebuild clean cleanall server server-linux generate watch-server mac
|
||||
.PHONY: prebuild clean cleanall server server-linux generate watch-server mac linux-app
|
||||
|
||||
all: server
|
||||
|
||||
@ -36,6 +36,9 @@ server-doc:
|
||||
watch-server:
|
||||
cd server; modd
|
||||
|
||||
webapp:
|
||||
cd webapp; npm run pack
|
||||
|
||||
mac:
|
||||
rm -rf mac/resources/bin
|
||||
rm -rf mac/resources/pack
|
||||
@ -46,6 +49,18 @@ mac:
|
||||
xcodebuild archive -workspace mac/Tasks.xcworkspace -scheme Tasks -archivePath mac/temp/tasks.xcarchive
|
||||
xcodebuild -exportArchive -archivePath mac/temp/tasks.xcarchive -exportPath mac/dist -exportOptionsPlist mac/export.plist
|
||||
|
||||
linux-app: server-linux webapp
|
||||
rm -rf linux/temp
|
||||
mkdir -p linux/temp/octo-linux-app/webapp
|
||||
mkdir -p linux/dist
|
||||
cp -R bin/octoserver linux/temp/octo-linux-app/
|
||||
cp -R config.json linux/temp/octo-linux-app/
|
||||
cp -R webapp/pack linux/temp/octo-linux-app/webapp/pack
|
||||
cd linux; make build
|
||||
cp -R linux/octo-linux-app linux/temp/octo-linux-app/
|
||||
cd linux/temp; tar -zcf ../dist/octo-linux-app.tar.gz octo-linux-app
|
||||
rm -rf linux/temp
|
||||
|
||||
clean:
|
||||
rm -rf bin
|
||||
rm -rf dist
|
||||
|
1
linux/config.json
Symbolic link
1
linux/config.json
Symbolic link
@ -0,0 +1 @@
|
||||
../config.json
|
@ -10,7 +10,7 @@ import (
|
||||
)
|
||||
|
||||
func runOctoTasks() {
|
||||
cmd := exec.Command("./bin/octoserver", "--monitorpid", strconv.FormatInt(int64(os.Getpid()), 10))
|
||||
cmd := exec.Command("./octoserver", "--monitorpid", strconv.FormatInt(int64(os.Getpid()), 10))
|
||||
cmd.Stdout = os.Stdout
|
||||
err := cmd.Run()
|
||||
if err != nil {
|
||||
@ -20,7 +20,6 @@ func runOctoTasks() {
|
||||
}
|
||||
|
||||
func main() {
|
||||
os.Chdir("../")
|
||||
debug := true
|
||||
w := webview.New(debug)
|
||||
defer w.Destroy()
|
||||
|
1
linux/octoserver
Symbolic link
1
linux/octoserver
Symbolic link
@ -0,0 +1 @@
|
||||
../bin/octoserver
|
1
linux/webapp
Symbolic link
1
linux/webapp
Symbolic link
@ -0,0 +1 @@
|
||||
../webapp
|
Loading…
Reference in New Issue
Block a user