Skip to content

Commit

Permalink
Temporary fix for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mgord9518 committed Jul 2, 2024
1 parent 73af6e8 commit 0d8cd2b
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions zig/lib/c_api.zig
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,15 @@ export fn aisap_appimage_wrapargs(
//perms: *c.aisap_permissions,
err: *CAppImageError,
) [*:null]?[*:0]const u8 {
const ai = getParent(c_ai);
_ = c_ai;
_ = err;
//const ai = getParent(c_ai);

return ai.wrapArgsZ(ai.allocator) catch {
err.* = .err;
return undefined;
};
unreachable;
// return ai.wrapArgsZ(ai.allocator) catch {
// err.* = .err;
// return undefined;
// };
}

// TODO: Re-implement wrap.go in Zig
Expand Down Expand Up @@ -180,20 +183,20 @@ export fn aisap_appimage_sandbox(
i += 1;
}

zig_ai.sandbox(.{
.args = args,
}) catch |e| {
std.debug.print("{s} ERR: {!}\n", .{ @src().fn_name, e });
err.* = .err;
};
// zig_ai.sandbox(.{
// .args = args,
// }) catch |e| {
// std.debug.print("{s} ERR: {!}\n", .{ @src().fn_name, e });
// err.* = .err;
// };

return;
}

zig_ai.sandbox(.{}) catch |e| {
std.debug.print("{s} ERR: {!}\n", .{ @src().fn_name, e });
err.* = .err;
};
// zig_ai.sandbox(.{}) catch |e| {
// std.debug.print("{s} ERR: {!}\n", .{ @src().fn_name, e });
// err.* = .err;
// };
}

/// Get the SquashFS image offset of the AppImage
Expand Down

0 comments on commit 0d8cd2b

Please sign in to comment.