1
0
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:
Jesús Espino 2020-10-29 10:03:48 +01:00
parent ce77568bd9
commit 4cf814acd1
6 changed files with 22 additions and 3 deletions

2
.gitignore vendored
View File

@ -42,3 +42,5 @@ octo*.db
mac/temp mac/temp
mac/dist mac/dist
linux/octo-linux-app linux/octo-linux-app
linux/dist
linux/temp

View File

@ -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 all: server
@ -36,6 +36,9 @@ server-doc:
watch-server: watch-server:
cd server; modd cd server; modd
webapp:
cd webapp; npm run pack
mac: mac:
rm -rf mac/resources/bin rm -rf mac/resources/bin
rm -rf mac/resources/pack rm -rf mac/resources/pack
@ -46,6 +49,18 @@ mac:
xcodebuild archive -workspace mac/Tasks.xcworkspace -scheme Tasks -archivePath mac/temp/tasks.xcarchive 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 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: clean:
rm -rf bin rm -rf bin
rm -rf dist rm -rf dist

1
linux/config.json Symbolic link
View File

@ -0,0 +1 @@
../config.json

View File

@ -10,7 +10,7 @@ import (
) )
func runOctoTasks() { 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 cmd.Stdout = os.Stdout
err := cmd.Run() err := cmd.Run()
if err != nil { if err != nil {
@ -20,7 +20,6 @@ func runOctoTasks() {
} }
func main() { func main() {
os.Chdir("../")
debug := true debug := true
w := webview.New(debug) w := webview.New(debug)
defer w.Destroy() defer w.Destroy()

1
linux/octoserver Symbolic link
View File

@ -0,0 +1 @@
../bin/octoserver

1
linux/webapp Symbolic link
View File

@ -0,0 +1 @@
../webapp