Skip to content

Commit

Permalink
fixup! Added deb package
Browse files Browse the repository at this point in the history
  • Loading branch information
mpolitzer committed Jun 6, 2023
1 parent 90987ed commit ccf3840
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ COPY . .
RUN make -j$(nproc) dep && \
make -j$(nproc) release=$RELEASE && \
make -j$(nproc) uarch && \
make debian DESTDIR=$PWD/_install/usr PREFIX=/usr && \
make deb DESTDIR=$PWD/_install/usr PREFIX=/usr && \
make install && \
make clean && \
rm -rf *
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
run: make uarch-with-toolchain

- name: Build deb package
run: make debian DESTDIR=$PWD/_install/usr PREFIX=/usr DEB_FILENAME=machine-emulator.deb
run: make deb DESTDIR=$PWD/_install/usr PREFIX=/usr DEB_FILENAME=machine-emulator.deb

- name: Install [/opt/cartesi]
run: make install
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ install-emulator: $(BIN_INSTALL_PATH) $(LUA_INSTALL_CPATH)/cartesi $(LUA_INSTALL
cd src && $(INSTALL) $(EMU_TO_LUA_CARTESI_CPATH) $(LUA_INSTALL_CPATH)/cartesi
cd src && $(INSTALL) $(EMU_TO_LUA_PATH) $(LUA_INSTALL_PATH)/cartesi
cat tools/template/cartesi-machine.template | sed 's|ARG_LUA_PATH|$(LUA_RUNTIME_PATH)/?.lua|g;s|ARG_LUA_CPATH|${LUA_DEFAULT_C_PATHS}|g;s|ARG_INSTALL_PATH|$(IMAGES_RUNTIME_PATH)|g;s|ARG_BIN_RUNTIME_PATH|$(BIN_RUNTIME_PATH)|g' > $(BIN_INSTALL_PATH)/cartesi-machine
cat tools/template/cartesi-machine-stored-hash.template | sed 's|ARG_LUA_PATH|$(LUA_RUNTIME_PATH)/?.lua|g;s|ARG_LUA_CPATH|${LUA_DEFAULT_C_PATHS}|g;s|ARG_BIN_RUNTIME_PATH|${BIN_RUNTIME_PATH}|g' > $(BIN_INSTALL_PATH)/cartesi-machine-stored-hash
cat tools/template/cartesi-machine-stored-hash.template | sed 's|ARG_LUA_PATH|$(LUA_RUNTIME_PATH)/?.lua|g;s|ARG_LUA_CPATH|${LUA_DEFAULT_C_PATHS}|g;s|ARG_BIN_RUNTIME_PATH|$(BIN_RUNTIME_PATH)|g' > $(BIN_INSTALL_PATH)/cartesi-machine-stored-hash
cat tools/template/rollup-memory-range.template | sed 's|ARG_LUA_PATH|$(LUA_RUNTIME_PATH)/?.lua|g;s|ARG_LUA_CPATH|${LUA_DEFAULT_C_PATHS}|g;s|ARG_BIN_RUNTIME_PATH|${BIN_RUNTIME_PATH}|g' > $(BIN_INSTALL_PATH)/rollup-memory-range
cd $(BIN_INSTALL_PATH) && $(CHMOD_EXEC) $(EMU_TO_BIN) cartesi-machine cartesi-machine-stored-hash rollup-memory-range
cd $(BIN_INSTALL_PATH) && $(CHMOD_DATA) $(EMU_LUA_TO_BIN)
Expand All @@ -265,8 +265,8 @@ install-strip:
cd $(LIB_INSTALL_PATH) && $(STRIP_EXEC) $(DEP_TO_LIB)
cd $(LUA_INSTALL_CPATH) && $(STRIP_EXEC) *.so

install: install-dep install-emulator install-strip $(INSTALL_PLAT) install-tests
debian: install-dep install-emulator install-strip $(INSTALL_PLAT)
install: install-dep install-emulator install-strip $(INSTALL_PLAT)
deb: install
mkdir -p $(DESTDIR)/../DEBIAN $(DESTDIR)/share/doc/cartesi-machine/
$(INSTALL) COPYING $(DESTDIR)/share/doc/cartesi-machine/copyright
cat tools/template/control.template | sed 's|ARG_VERSION|$(MACHINE_EMULATOR_VERSION)|g' > $(DESTDIR)/../DEBIAN/control
Expand Down

0 comments on commit ccf3840

Please sign in to comment.