mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-14 11:23:42 +01:00
update scripts
This commit is contained in:
parent
b98da24d1c
commit
fa65c3f54c
7 changed files with 15 additions and 12 deletions
|
@ -15,9 +15,9 @@ pub fn build(b: *std.build.Builder) void {
|
||||||
|
|
||||||
exe.addModule("ansi-term", b.dependency("ansi_term", .{}).module("ansi-term"));
|
exe.addModule("ansi-term", b.dependency("ansi_term", .{}).module("ansi-term"));
|
||||||
|
|
||||||
exe.install();
|
b.installArtifact(exe);
|
||||||
|
|
||||||
const run_cmd = exe.run();
|
const run_cmd = b.addRunArtifact(exe);
|
||||||
run_cmd.step.dependOn(b.getInstallStep());
|
run_cmd.step.dependOn(b.getInstallStep());
|
||||||
if (b.args) |args| {
|
if (b.args) |args| {
|
||||||
run_cmd.addArgs(args);
|
run_cmd.addArgs(args);
|
||||||
|
|
|
@ -15,6 +15,9 @@ pub fn populateEnvironment(env: *std.process.EnvMap) !void {
|
||||||
|
|
||||||
try env.put("MZTE_ENV_SET", "1");
|
try env.put("MZTE_ENV_SET", "1");
|
||||||
|
|
||||||
|
// set shell to fish to prevent anything from defaulting to mzteinit
|
||||||
|
try env.put("SHELL", "fish");
|
||||||
|
|
||||||
// mix (elixir package manager) should respect XDG
|
// mix (elixir package manager) should respect XDG
|
||||||
try env.put("MIX_XDG", "1");
|
try env.put("MIX_XDG", "1");
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ pub fn build(b: *std.build.Builder) void {
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = mode,
|
.optimize = mode,
|
||||||
});
|
});
|
||||||
exe.install();
|
b.installArtifact(exe);
|
||||||
|
|
||||||
const desktop_install_step = b.addInstallFile(
|
const desktop_install_step = b.addInstallFile(
|
||||||
.{ .path = "assets/openbrowser.desktop" },
|
.{ .path = "assets/openbrowser.desktop" },
|
||||||
|
@ -18,7 +18,7 @@ pub fn build(b: *std.build.Builder) void {
|
||||||
);
|
);
|
||||||
b.getInstallStep().dependOn(&desktop_install_step.step);
|
b.getInstallStep().dependOn(&desktop_install_step.step);
|
||||||
|
|
||||||
const run_cmd = exe.run();
|
const run_cmd = b.addRunArtifact(exe);
|
||||||
run_cmd.step.dependOn(b.getInstallStep());
|
run_cmd.step.dependOn(b.getInstallStep());
|
||||||
if (b.args) |args| {
|
if (b.args) |args| {
|
||||||
run_cmd.addArgs(args);
|
run_cmd.addArgs(args);
|
||||||
|
|
|
@ -20,7 +20,7 @@ pub fn build(b: *std.build.Builder) void {
|
||||||
|
|
||||||
exe.strip = optimize != .Debug and optimize != .ReleaseSafe;
|
exe.strip = optimize != .Debug and optimize != .ReleaseSafe;
|
||||||
|
|
||||||
exe.install();
|
b.installArtifact(exe);
|
||||||
|
|
||||||
var logo_install_step = b.addInstallFile(
|
var logo_install_step = b.addInstallFile(
|
||||||
.{ .path = "assets/playtwitch.svg" },
|
.{ .path = "assets/playtwitch.svg" },
|
||||||
|
@ -34,7 +34,7 @@ pub fn build(b: *std.build.Builder) void {
|
||||||
);
|
);
|
||||||
b.getInstallStep().dependOn(&desktop_entry_install_step.step);
|
b.getInstallStep().dependOn(&desktop_entry_install_step.step);
|
||||||
|
|
||||||
const run_cmd = exe.run();
|
const run_cmd = b.addRunArtifact(exe);
|
||||||
run_cmd.step.dependOn(b.getInstallStep());
|
run_cmd.step.dependOn(b.getInstallStep());
|
||||||
if (b.args) |args| {
|
if (b.args) |args| {
|
||||||
run_cmd.addArgs(args);
|
run_cmd.addArgs(args);
|
||||||
|
|
|
@ -18,9 +18,9 @@ pub fn build(b: *std.build.Builder) void {
|
||||||
exe.addModule("ansi-term", b.dependency("ansi_term", .{}).module("ansi-term"));
|
exe.addModule("ansi-term", b.dependency("ansi_term", .{}).module("ansi-term"));
|
||||||
exe.addModule("known-folders", b.dependency("known_folders", .{}).module("known-folders"));
|
exe.addModule("known-folders", b.dependency("known_folders", .{}).module("known-folders"));
|
||||||
|
|
||||||
exe.install();
|
b.installArtifact(exe);
|
||||||
|
|
||||||
const run_cmd = exe.run();
|
const run_cmd = b.addRunArtifact(exe);
|
||||||
run_cmd.step.dependOn(b.getInstallStep());
|
run_cmd.step.dependOn(b.getInstallStep());
|
||||||
if (b.args) |args| {
|
if (b.args) |args| {
|
||||||
run_cmd.addArgs(args);
|
run_cmd.addArgs(args);
|
||||||
|
|
|
@ -17,9 +17,9 @@ pub fn build(b: *std.build.Builder) void {
|
||||||
|
|
||||||
exe.strip = mode != .Debug;
|
exe.strip = mode != .Debug;
|
||||||
|
|
||||||
exe.install();
|
b.installArtifact(exe);
|
||||||
|
|
||||||
const run_cmd = exe.run();
|
const run_cmd = b.addRunArtifact(exe);
|
||||||
run_cmd.step.dependOn(b.getInstallStep());
|
run_cmd.step.dependOn(b.getInstallStep());
|
||||||
if (b.args) |args| {
|
if (b.args) |args| {
|
||||||
run_cmd.addArgs(args);
|
run_cmd.addArgs(args);
|
||||||
|
|
|
@ -16,9 +16,9 @@ pub fn build(b: *std.build.Builder) void {
|
||||||
|
|
||||||
exe.strip = mode != .Debug;
|
exe.strip = mode != .Debug;
|
||||||
|
|
||||||
exe.install();
|
b.installArtifact(exe);
|
||||||
|
|
||||||
const run_cmd = exe.run();
|
const run_cmd = b.addRunArtifact(exe);
|
||||||
run_cmd.step.dependOn(b.getInstallStep());
|
run_cmd.step.dependOn(b.getInstallStep());
|
||||||
if (b.args) |args| {
|
if (b.args) |args| {
|
||||||
run_cmd.addArgs(args);
|
run_cmd.addArgs(args);
|
||||||
|
|
Loading…
Reference in a new issue